You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Space URL is passed as a property of a task (task -> content -> metadata -> URL), but it doesn't look like the space ID is anywhere in the task. Is there a way to find tasks associated with a space besides parsing that URL and iterating through all the tasks? Ideally, I'd be able to supply a space ID and either get the container ID or tasks associated with it.
The text was updated successfully, but these errors were encountered:
Looking into it a little further, I don't actually see a way to figure out the container ID for a space that has no tasks. there isn't an api/v1/tasks/container endpoint that lists all of the containers. Since Container ID is a required parameter for many of the endpoints, it seems like that would be more interesting to have. Maybe add the space ID into that call?
Edit: Sorry to keep banging on this. I'm new to programming and I'm trying to use this as a way to learn REST APIs. Digging a little deeper, I learned that the contentcontainer_id is actually unique to the space. So it would make more sense overall to expose that property in spaces. I've worked around it for now by adding the contentcontainer_id as a tag after creating the space (I'm not using tags for anything else), but it's not a solution that would work for everyone... Thanks!
Edit 2: Last edit, I swear. I figured out that I could just add it to the SpaceDefinitions.php file. I added this line to the getSpace function: 'contentcontainer_id' => $space->contentcontainer_id,
Space URL is passed as a property of a task (task -> content -> metadata -> URL), but it doesn't look like the space ID is anywhere in the task. Is there a way to find tasks associated with a space besides parsing that URL and iterating through all the tasks? Ideally, I'd be able to supply a space ID and either get the container ID or tasks associated with it.
The text was updated successfully, but these errors were encountered: