API reference · Account
Give a film to a team, or take it back
POST/api/studio/projects/{id}/teamSigned in session
Its maker only (403 not_yours): org_id gives it to one of their teams where their role edits films (403 not_in_team; 409 already_shared, project_exists, too_many_projects, version_conflict); null takes it back to their own account. The film keeps its id, version, history and comments. The signed in account; same origin for a write.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The project's id, stp_ followed by hex. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| org_idrequired | integer or null |
Example
{
"org_id": 0
}Answer 200
The film as it stands now (StudioProject).
The answer's fields are not named in the document.
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.