def METHOD_NAME(self, client, access_token, schedule):
    url = "/requested-tasks/"
    headers = {"Authorization": access_token, "Content-Type": "application/json"}
    response = client.post(
        url,
        headers=headers,
        data=json.dumps({"schedule_names": [schedule["name"]]}),
    )
    assert response.status_code == 201