API reference

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

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe project's id, stp_ followed by hex.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
org_idrequiredinteger 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.

Antimatter