diff --git a/docs/openapi.json b/docs/openapi.json index 02a7ad912e..c22c22b89f 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -1 +1 @@ -{"info":{"title":"Kitsu API","description":"\n## Welcome to the Kitsu API specification\n```Version: 0.19.57```\n\nThe Kitsu API allows to store and manage the data of your animation/VFX production. Through it you can link all the tools of your pipeline and make sure they are all synchronized.\n\nAn easy to use Python client to access this API is available:\n[Python Kitsu Client documentation](https://gazu.cg-wire.com/)\n\n## Authentication
\n\n

Before you can use any of the endpoints outline below,\nyou will have to get a JWT token to authorize your requests.\n

\n\n

\nYou will find the information to retrieve it in the \nZou documentation.\n

\n\n[OpenAPI definition](/openapi.json)\n","contact":{"name":"CGWire","url":"https://www.cg-wire.com"},"version":"0.19.57","license":{"name":"AGPL 3.0","url":"https://www.gnu.org/licenses/agpl-3.0.en.html"}},"paths":{"/auth/login":{"post":{"summary":"Log in user by creating and registering auth tokens.","description":"Login is based on email and password. If no user match given email and a destkop ID, it looks in matching the desktop ID with the one stored in database. It is useful for clients that run on desktop tools and that don't know user email.","responses":{"200":{"description":"Login successful"},"400":{"description":"Login failed"},"500":{"description":"Database not reachable"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"},{"in":"formData","name":"password","required":true,"type":"string","format":"password","x-example":"mysecretpassword"},{"in":"formData","name":"otp","required":false,"type":"string","format":"password","x-example":123456}],"tags":["Authentication"]}},"/auth/logout":{"get":{"summary":"Log user out by revoking his auth tokens.","description":"Once logged out, current user cannot access the API anymore.","responses":{"200":{"description":"Logout successful"},"500":{"description":"Access token not found"}},"tags":["Authentication"]}},"/auth/authenticated":{"get":{"summary":"Returns information if the user is authenticated else it returns a 401","description":"response.
","responses":{"200":{"description":"User authenticated"},"401":{"description":"Person not found"}},"tags":["Authentication"]}},"/auth/register":{"post":{"summary":"Allow a user to register himself to the service.","responses":{"201":{"description":"Registration successful"},"400":{"description":"Invalid password or email"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password_2","required":true,"type":"string","format":"password"},{"in":"formData","name":"first_name","required":true,"type":"string"},{"in":"formData","name":"last_name","required":true,"type":"string"}],"tags":["Authentication"]}},"/auth/change-password":{"post":{"summary":"Allow the user to change his password.","description":"Prior to modifying the password, it requires to give the current password (to make sure the user changing the password is not someone who stealed the session). The new password requires a confirmation to ensure that the user didn't make a mistake by typing his new password.","responses":{"200":{"description":"Password changed"},"400":{"description":"Invalid password or inactive user"}},"parameters":[{"in":"formData","name":"old_password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password_2","required":true,"type":"string","format":"password"}],"tags":["Authentication"]}},"/auth/reset-password":{"put":{"summary":"Resource to allow a user to change his password when he forgets it.","description":"It uses a classic scheme: a token is sent by email to the user. Then he can change his password.","responses":{"200":{"description":"Password reset"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"},{"in":"formData","name":"token","required":true,"type":"string","format":"JWT token"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password2","required":true,"type":"string","format":"password"}],"tags":["Authentication"]},"post":{"summary":"Resource to allow a user to change his password when he forgets it.","description":"It uses a classic scheme: a token is sent by email to the user. Then he can change his password.","responses":{"200":{"description":"Reset token sent"},"400":{"description":"Email not listed in database"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"}],"tags":["Authentication"]}},"/auth/refresh-token":{"get":{"summary":"Tokens are considered as outdated every two weeks.","description":"This route allows to make their lifetime long before they get outdated.","responses":{"200":{"description":"Access Token"}},"tags":["Authentication"]}},"/auth/totp":{"put":{"summary":"Resource to allow a user to pre-enable TOTP.","responses":{"200":{"description":"TOTP enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"post":{"summary":"Resource to allow a user to enable TOTP.","responses":{"200":{"description":"TOTP enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"delete":{"summary":"Resource to allow a user to disable TOTP.","responses":{"200":{"description":"TOTP disabled"},"400":{"description":"TOTP not enabled"}},"tags":["Authentication"]}},"/auth/email-otp":{"put":{"summary":"Resource to allow a user to pre-enable OTP by email.","responses":{"200":{"description":"OTP by email enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"post":{"summary":"Resource to allow a user to enable OTP by email.","responses":{"200":{"description":"OTP by email enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"get":{"summary":"Resource to send an OTP by email to user.","responses":{"200":{"description":"OTP by email sent"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"delete":{"summary":"Resource to allow a user to disable OTP by email.","responses":{"200":{"description":"OTP by email disabled."},"400":{"description":"Invalid password. Wrong or expired token. Inactive user. Wrong 2FA."}},"tags":["Authentication"]}},"/auth/recovery-codes":{"put":{"summary":"Resource to allow a user to generate new recovery codes.","responses":{"200":{"description":"new recovery codes."},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]}},"/auth/fido":{"put":{"summary":"Resource to allow a user to pre-register a FIDO device.","responses":{"200":{"description":"FIDO device pre-registered."},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"post":{"summary":"Resource to allow a user to register a FIDO device.","responses":{"200":{"description":"FIDO device registered."},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"get":{"summary":"Resource to get a challenge for a FIDO device.","responses":{"200":{"description":"Challenge for FIDO device."},"400":{"description":"Wrong parameter."}},"tags":["Authentication"]},"delete":{"summary":"Resource to allow a user to unregister a FIDO device.","responses":{"200":{"description":"FIDO device unregistered."},"400":{"description":"Invalid password Wrong or expired token Inactive user Wrong 2FA"}},"tags":["Authentication"]}},"/auth/saml/sso":{"post":{"summary":"Resource to allow a user to login with SAML SSO.","responses":{"302":{"description":"Login successful, redirect to the home page."},"400":{"description":"Wrong parameter"}},"tags":["Authentication"]}},"/auth/saml/login":{"get":{"summary":"Resource to allow a user to login with SAML SSO.","responses":{"302":{"description":"Redirect to the SAML IDP."},"400":{"description":"Wrong parameter."}},"tags":["Authentication"]}},"/data/asset-types":{"get":{"summary":"Retrieve all asset types (entity types that are not shot, sequence or episode).","responses":{"200":{"description":"All asset types"}},"tags":["Assets"]}},"/data/asset-types/{asset_type_id}":{"get":{"summary":"Retrieve given asset type.","responses":{"200":{"description":"Given asset type"}},"parameters":[{"in":"path","name":"asset_type_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/assets":{"get":{"summary":"Retrieve all entities that are not shot or sequence.","description":"Adds project name and asset type name.
","responses":{"200":{"description":"All assets"}},"tags":["Assets"]}},"/data/assets/all":{"get":{"summary":"Retrieve all entities that are not shot or sequence.","description":"Adds project name and asset type name.
","responses":{"200":{"description":"All assets"}},"tags":["Assets"]}},"/data/assets/with-tasks":{"get":{"summary":"Retrieve all entities that are not shot or sequence.","description":"Adds project name and asset type name and all related tasks. If episode_id is given as parameter, it returns assets not linked to an episode and assets linked to given episode.","responses":{"200":{"description":"All assets with tasks"}},"tags":["Assets"]}},"/data/assets/{asset_id}":{"get":{"summary":"Retrieve given asset.","responses":{"200":{"description":"Given asset"}},"parameters":[{"in":"path","name":"asset_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]},"delete":{"summary":"Delete given asset.","responses":{"204":{"description":"Given asset deleted"}},"parameters":[{"in":"path","name":"asset_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/assets/{asset_id}/assets":{"get":{"summary":"Retrieve all assets for a given asset.","responses":{"200":{"description":"All assets for a given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given shot.","responses":{"200":{"description":"All tasks related to given shot"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given asset.","responses":{"200":{"description":"All task types related to given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/cast-in":{"get":{"summary":"Resource to retrieve the casting of a given asset.","responses":{"200":{"description":"Casting of given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/casting":{"put":{"summary":"Resource to allow the modification of assets linked to a asset.","responses":{"200":{"description":"Modification of assets linked to given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]},"get":{"summary":"Resource to retrieve the casting of a given asset.","responses":{"200":{"description":"Casting of given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/shot-asset-instances":{"get":{"summary":"Retrieve all shot asset instances linked to asset.","responses":{"200":{"description":"All shot asset instances linked to asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/scene-asset-instances":{"get":{"summary":"Retrieve all scene asset instances linked to asset.","responses":{"200":{"description":"All scene asset instances linked to asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/asset-asset-instances":{"post":{"summary":"Create an asset instance inside given asset.","responses":{"201":{"description":"Asset instance created inside given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]},"get":{"summary":"Retrieve all asset instances instantiated inside this asset.","responses":{"200":{"description":"All asset instances instantiated inside given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/assets":{"get":{"summary":"Retrieve all assets for given project and entity type.","responses":{"200":{"description":"All assets for given project and entity type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/assets/new":{"post":{"summary":"Create new asset resource.","responses":{"201":{"description":"New asset resource created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Asset","description":"Name, description, data and ID of asset","schema":{"type":"object","required":["name","description","data","is_shared","source_id"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"data":{"type":"string"},"is_shared":{"type":"boolean"},"source_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Assets"]}},"/data/projects/{project_id}/asset-types":{"get":{"summary":"Retrieve all asset types for given project.","responses":{"200":{"description":"All asset types for given project"}},"parameters":[{"in":"path","name":"project_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/shots/{shot_id}/asset-types":{"get":{"summary":"Retrieve all asset shots for given shot.","responses":{"200":{"description":"All asset shots for given shot"}},"parameters":[{"in":"path","name":"shot_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/projects/{project_id}/assets":{"get":{"summary":"Retrieve all assets for given project.","responses":{"200":{"description":"All assets for given project"}},"parameters":[{"in":"path","name":"project_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/actions/assets/share":{"post":{"summary":"Share or unshare a list of assets.","responses":{"201":{"description":"All assets modified."}},"parameters":[{"in":"formData","name":"asset_ids","default":"None,","type":"array","items":{"type":"UUID"},"x-example":["a24a6ea4-ce75-4665-a070-57453082c25"]},{"in":"formData","name":"is_shared","default":true,"type":"boolean","x-example":true}],"tags":["Assets"],"consumes":["multipart/form-data"]}},"/actions/projects/{project_id}/assets/share":{"post":{"summary":"Share or unshare all assets (or a list of assets) for given project.","responses":{"201":{"description":"All assets modified."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"asset_ids","default":"None,","type":"array","items":{"type":"UUID"},"x-example":["a24a6ea4-ce75-4665-a070-57453082c25"]},{"in":"formData","name":"is_shared","default":true,"type":"boolean","x-example":true}],"tags":["Assets"],"consumes":["multipart/form-data"]}},"/actions/projects/{project_id}/asset-types/{asset_type_id}/assets/share":{"post":{"summary":"Share or unshare all assets for given project and asset type.","responses":{"201":{"description":"All assets modified."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"is_shared","default":true,"type":"boolean","x-example":true}],"tags":["Assets"],"consumes":["multipart/form-data"]}},"/data/projects/{project_id}/assets/shared-used":{"get":{"summary":"Retrieve all shared assets used in project.","responses":{"200":{"description":"All shared assets used in project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/episodes/{episode_id}/assets/shared-used":{"get":{"summary":"Retrieve all shared assets used in project episode.","responses":{"200":{"description":"All shared assets used in project episode"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/entities/{entity_id}/casting":{"put":{"summary":"Resource to allow the modification of assets linked to an entity.","responses":{"200":{"description":"Modification of assets linked to an entity"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]},"get":{"summary":"Resource to retrieve the casting of a given entity.","responses":{"200":{"description":"Casting of given entity"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/casting":{"get":{"summary":"Resource to retrieve the casting of assets from given asset type.","responses":{"200":{"description":"Casting of assets from given asset type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/episodes/casting":{"get":{"summary":"Resource to retrieve the casting of episodes.","responses":{"200":{"description":"Casting of episodes"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/sequences/{sequence_id}/casting":{"get":{"summary":"Resource to retrieve the casting of shots from given sequence.","responses":{"200":{"description":"Casting of shots from given sequence"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/episodes/{episode_id}/sequences/all/casting":{"get":{"summary":"Resource to retrieve the casting of shots from given episode.","responses":{"200":{"description":"Casting for all shots from given episode."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/sequences/all/casting":{"get":{"summary":"Resource to retrieve the casting of shots from all sequences of given","description":"project.
","responses":{"200":{"description":"Casting for all shots from given project."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/entity-links":{"get":{"summary":"Retrieve all entity links related to given project.","description":"
Results can be paginated using page and limit query parameters. If you
prefer a more accurate pagination, you can use and
cursor_created_at to get the next page.
","responses":{"200":{"description":"All entity links related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"page","required":false,"type":"string","format":"Number","x-example":2},{"in":"limit","name":"page","required":false,"type":"string","format":"Number","x-example":100},{"in":"cursor_created_at","name":"page","required":false,"type":"string","format":"Datetime","x-example":"2020-01-01T00:00:00"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/entity-links/{entity_link_id}":{"delete":{"summary":"Delete given entity link.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"Entity link deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"entity_link_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/scenes/{scene_id}/asset-instances":{"post":{"summary":"Create an asset instance on given scene.","responses":{"201":{"description":"Asset instances created on given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]},"get":{"summary":"Retrieve all asset instances linked to scene.","responses":{"200":{"description":"All asset instances linked to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/scenes/{scene_id}/camera-instances":{"get":{"summary":"Retrieve all camera instances linked to scene.","responses":{"201":{"description":"All camera instances linked to scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/shots/{shot_id}/asset-instances":{"post":{"summary":"Add an asset instance to given shot.","responses":{"201":{"description":"Asset instance added to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]},"get":{"summary":"Retrieve all asset instances linked to shot.","responses":{"200":{"description":"All assets linked to shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/shots/{shot_id}/asset-instances/{asset_instance_id}":{"delete":{"summary":"Remove an asset instance from given shot.","responses":{"204":{"description":"Asset instance removed from given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/entities/{entity_id}/chat":{"get":{"summary":"Get chat details.","responses":{"200":{"description":"Chat information"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Chat"]}},"/data/entities/{entity_id}/chat/messages":{"post":{"summary":"Create a new chat message.","responses":{"201":{"description":"Chat message created"},"400":{"description":"Not participant of the chat"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"message","description":"Message to send","type":"string","required":true,"x-example":"Hello, world!"},{"in":"formData","name":"files","description":"Files to attach","type":"file","required":false}],"tags":["Chat"]},"get":{"summary":"Get chat messages for an entity.","responses":{"200":{"description":"Chat messages"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Chat"]}},"/data/entities/{entity_id}/chat/messages/{chat_message_id}":{"get":{"summary":"Get chat message.","responses":{"200":{"description":"Chat message"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"chat_message_id","description":"ID of the chat message","type":"integer","required":true,"x-example":1}],"tags":["Chat"]},"delete":{"summary":"Delete chat message.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"chat_message_id","description":"ID of the chat message","type":"integer","required":true,"x-example":1}],"tags":["Chat"]}},"/data/tasks/{task_id}/comments/{comment_id}/ack":{"post":{"summary":"Acknowledge given comment.","description":"If it's already acknowledged, remove acknowledgement.","responses":{"200":{"description":"Comment acknowledged"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/tasks/{task_id}/comments/{comment_id}/reply":{"post":{"summary":"Reply to given comment.","description":"Add comment to its replies list.","responses":{"200":{"description":"Reply to given comment"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"text","type":"string","x-example":"comment"}],"tags":["Comments"]}},"/data/tasks/{task_id}/comments/{comment_id}/attachments/{attachment_id}":{"delete":{"summary":"Delete attachment linked to a comment matching given ID.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"attachment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/tasks/{task_id}/comments/{comment_id}/reply/{reply_id}":{"delete":{"summary":"Delete given comment reply.","responses":{"200":{"description":"Given comment reply deleted"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"reply_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/attachment-files/{attachment_file_id}/file/{file_name}":{"get":{"summary":"Download attachment file.","responses":{"200":{"description":"Attachment file downloaded","schema":{"type":"file"}},"404":{"description":"Download failed"}},"parameters":[{"in":"path","name":"attachment_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"file_name","required":true,"type":"string","x-example":"filename"}],"tags":["Comments"],"produces":["multipart/form-data","image/png","image/gif","image/jpeg"]}},"/actions/tasks/{task_id}/comments/{comment_id}/add-attachment":{"post":{"summary":"Add given files to the comment entry as attachments.","responses":{"201":{"description":"Given files added to the comment entry as attachments"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"files","type":"file","required":true}],"tags":["Comments"],"consumes":["image/png","image/gif","image/jpeg","multipart/form-data"]}},"/data/projects/{project_id}/attachment-files":{"get":{"summary":"Return all attachment files related to given project.","responses":{"200":{"description":"All attachment files related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/tasks/{task_id}/attachment-files":{"get":{"summary":"Return all attachment files related to given task.","responses":{"200":{"description":"All attachment files related to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/actions/tasks/{task_id}/comment":{"post":{"summary":"Create a new comment for given task.","description":"It requires a text, a task_status and a person as arguments. This way, comments keep history of status changes. When the comment is created, it updates the task status with given task status.","responses":{"201":{"description":"New comment created"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Comment","description":"person ID, name, comment, revision and change status of task","schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"created_at":{"type":"string","format":"date-time","example":"2022-07-12T13:00:00"},"checklist":{"type":"object","properties":{"item 1":{"type":"string"}}}}}}],"tags":["Comments"]}},"/actions/projects/{project_id}/tasks/comment-many":{"post":{"summary":"Create several comments at once.","description":"Each comment requires a text, a task id, a task_status and a person as arguments. This way, comments keep history of status changes. When the comment is created, it updates the task status with given task status.","responses":{"201":{"description":"Given files added to the comment entry as attachments"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Comment","description":"person ID, name, comment, revision and change status of task","schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"object_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"created_at":{"type":"string","format":"date-time","example":"2022-07-12T13:00:00"},"checklist":{"type":"object","properties":{"item 1":{"type":"string"}}}}}}],"tags":["Comments"]}},"/data/persons":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/persons/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/projects":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/projects/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/project-status":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/project-status/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entity-types":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/entity-types/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entities":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/entities/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/task-types":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/task-types/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/task-status":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/task-status/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/tasks":{"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/tasks/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/departments":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/departments/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/organisations":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/organisations/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/file-status/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/file-status/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/softwares":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/softwares/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a software corresponding at given ID and return it as a","description":"JSON object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"software_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/output-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/output-files/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON","description":"object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"output_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/output-types":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/output-types/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve an output type corresponding at given ID and return it as a","description":"JSON object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/preview-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/preview-files/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a preview file corresponding at given ID and retuns","description":"a 204 status code.
","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/working-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/working-files/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a working file corresponding at given ID and return it as a","description":"JSON object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/attachment-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/attachment-files/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/comments":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/comments/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]}},"/data/time-spents/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/time-spents/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/day-offs/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/day-offs/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/custom-actions/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/custom-actions/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/status-automations/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/status-automations/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/asset-instances/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/asset-instances/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/playlists/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/playlists/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/events/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/events/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/notifications/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/notifications/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/search-filters/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/search-filters/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/search-filter-groups/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/search-filter-groups/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/schedule-items/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/schedule-items/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/news/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/news/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/milestones/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/milestones/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/metadata-descriptors/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/metadata-descriptors/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/subscriptions/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/subscriptions/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entity-links/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/entity-links/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/chats/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/chats/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/chat-messages/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/chat-messages/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/preview-background-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/preview-background-files/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/studios":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/studios/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entities/{entity_id}/news":{"get":{"summary":"Retrieve all news linked to a given entity.","responses":{"200":{"description":"All news linked to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entities"]}},"/data/entities/{entity_id}/preview-files":{"get":{"summary":"Retrieve all preview files linked to a given entity.","responses":{"200":{"description":"All preview files linked to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entities"]}},"/data/entities/{entity_id}/time-spents":{"get":{"summary":"Retrieve all time spents linked to a given entity.","responses":{"200":{"description":"All time spents linked to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entities"]}},"/data/entities/{entity_id}/entities-linked/with-tasks":{"get":{"summary":"Resource to retrieve the entities linked on a given entity.","responses":{"200":{"description":"Entities linked on given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entity"]}},"/export/csv/projects/{project_id}/assets.csv":{"get":{"summary":"Export assets linked to a given project as csv.","responses":{"200":{"description":"Assets exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/projects/{project_id}/shots.csv":{"get":{"summary":"Export shots linked to a given project as csv.","responses":{"200":{"description":"Shots exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/projects/{project_id}/casting.csv":{"get":{"summary":"Export casting linked to a given project as csv.","responses":{"200":{"description":"Casting exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/projects/{project_id}/edits.csv":{"get":{"summary":"Export edits linked to a given project as csv.","responses":{"200":{"description":"Edits exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/playlists/{playlist_id}":{"get":{"summary":"Export a given playlist as csv.","responses":{"200":{"description":"Playlist exported as csv"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/persons.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/projects.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/tasks.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/time-spents.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/task-types.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/data/events/last":{"get":{"summary":"Retrieve last events.","responses":{"200":{"description":"All login logs"}},"parameters":[{"in":"query","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"only_files","type":"boolean","default":false},{"in":"query","name":"page_size","type":"integer","default":100,"x-example":100},{"in":"query","name":"project_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Events"]}},"/data/events/login-logs/last":{"get":{"summary":"Retrieve all login logs.","responses":{"200":{"description":"All login logs"}},"parameters":[{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12T00:00:00"},{"in":"query","name":"page_size","type":"integer","x-example":100}],"tags":["Events"]}},"/data/files/{file_id}":{"get":{"summary":"Get information about a file that could be a working file as much as an","description":"output file.
","responses":{"200":{"description":"Information about file"}},"parameters":[{"in":"path","name":"file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/tasks/{task_id}/working-files":{"get":{"summary":"Return last working files revision for each file name for given task.","responses":{"200":{"description":"Last working files revision for each file name for given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/tasks/{task_id}/working-files/new":{"post":{"summary":"Create new working file.","description":"A working file is a file used to produce output files. It is the file the CG artist is working on. It is versioned, tied to a task and a software and requires a comment each time it is created. A path is generated for each file created. The path format is defined in the file tree template file.","responses":{"201":{"description":"New working file created","schema":{"type":"file"}},"400":{"description":"Given working file already exists"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, mode, description, comment, person ID, software ID, revision and separator.","schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"mode":{"type":"string","default":"working"},"description":{"type":"string"},"comment":{"type":"string"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"software_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"revision":{"type":"integer"},"sep":{"type":"string","default":"/"}}}}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/data/tasks/{task_id}/working-files/last-revisions":{"get":{"summary":"Return last working files revision for each file name for given task.","responses":{"200":{"description":"Last working files revision for each file name for given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/tasks/{task_id}/working-file-path":{"post":{"summary":"Generate a working file path from file tree template.","description":"Generate file path based on several parameters: task, software, mode, revision and separator. Revision can be computed automatically as next revision if not given.","responses":{"200":{"description":"Working file path generated"},"400":{"description":"Malformed file tree"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, software, mode, revision and separator.","schema":{"type":"object","properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"working"},"software_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"revision":{"type":"integer"},"separator":{"type":"string","default":"/"}}}}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/new":{"post":{"summary":"Create new output file linked to assets through an instance of this asset for a given shot.","description":"Some output files are linked to assets through an instance of this asset for a given shot. Each time a CG artist is satisfied by what he did on a working file, he can create an output file that will be linked to a target instance. It keeps track of the working file at the origin of the output file. An output type is required for better categorization (textures, caches, ...). A task type can be set too to give the department related to the output file.","responses":{"200":{"description":"New output file created","schema":{"type":"file"}},"400":{"description":"Given output file already exists Given person not found Given output type not found"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, mode, output type ID, task type ID, person ID, working file ID, file status ID, comment, extension, representation, revision, number of elements and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"working_file_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"file_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"is_sequence":{"type":"boolean","default":false},"comment":{"type":"string"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"nb_elements":{"type":"integer","default":1},"sep":{"type":"string","default":"/"}}}}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/next-revision":{"post":{"summary":"Get next revision for given asset instance, output type, task type and name.","responses":{"200":{"description":"Next revision for given asset instance, output type, task type and name"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, output type ID, task type ID.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/last-revisions":{"get":{"summary":"Get last revisions of output files for given instance grouped by output type and file name.","responses":{"200":{"description":"Last revisions of output files for given instance grouped by output type and file name"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-types":{"get":{"summary":"Return all types of output generated for given instance.","responses":{"200":{"description":"All types of output generated for given instance and temporal_entity"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-types/{output_type_id}/output-files":{"get":{"summary":"Get all output files for given asset instance and given output type.","responses":{"200":{"description":"All output files for given asset instance and given output type"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-file-path":{"post":{"summary":"Generate an output file path from file tree template","description":"Generate file path based on several parameters: asset instance, output type, task type, revision, mode, name and separator. Revision can be computed automatically as next revision in case no revision is given in parameter.","responses":{"200":{"description":"Output file path generated"},"400":{"description":"Malformed file tree"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Asset instance, output type, task type, revision, mode, name and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"separator":{"type":"string","default":"/"}}}}],"tags":["Files"]}},"/data/entities/{entity_id}/working-files":{"get":{"summary":"Get all working files for a given entity and possibly a task and a name.","responses":{"200":{"description":"All working files for given entity and possibly a task and a name"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-files/new":{"post":{"summary":"Create new output file linked to a given entity.","description":"Output files are linked to entities. Each time a CG artist is satisfied by what he did on a working file, he can create an output file that will be linked to a target entity (an asset, a shot, a sequence, ...). It keeps track of the working file at the origin of the output file. An output type is required for better categorization (textures, caches, ...). A task type can be set too to give the department related to the output file. Revision is automatically set.","responses":{"200":{"description":"New output file created","schema":{"type":"file"}},"400":{"description":"Given output file already exists Given person not found Given output type not found"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, mode, output type ID, task type ID, person ID, working file ID, file status ID, comment, extension, representation, revision, number of elements and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"working_file_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"file_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"nb_elements":{"type":"integer","default":1},"sep":{"type":"string","default":"/"}}}}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/data/entities/{entity_id}/output-files/next-revision":{"post":{"summary":"Get next revision for given entity, output type, task type and name.","responses":{"200":{"description":"Next revision for given entity, output type, task type and name"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, output type ID, task type ID.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Files"]}},"/data/entities/{entity_id}/output-files/last-revisions":{"get":{"summary":"Get last revisions of output files for given entity grouped by output type and file name.","responses":{"200":{"description":"Last revisions of output files for given entity grouped by output type and file name"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-types":{"get":{"summary":"Return all types of output generated for given entity.","responses":{"200":{"description":"All types of output generated for given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-types/{output_type_id}/output-files":{"get":{"summary":"Get all output files for given entity and given output type.","responses":{"200":{"description":"All output files for given entity and given output type"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-files":{"get":{"summary":"Get all output files for given entity.","responses":{"200":{"description":"All output files for given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/projects/{project_id}/output-files":{"get":{"summary":"Get all output files for given poject.","responses":{"200":{"description":"All output files for given project."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/output-files":{"get":{"summary":"Get all output files for given asset instance and given output type.","responses":{"200":{"description":"All output files for given asset instance and given temporal entity (shot, sequence, etc.)"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"cache"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-file-path":{"post":{"summary":"Generate an output file path from file tree template","description":"Generate file path based on several parameters: entity, output type, task type, revision, mode, name and separator. Revision can be computed automatically as next revision if not given.","responses":{"200":{"description":"Output file path generated"},"400":{"description":"Malformed file tree"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Entity, output type, task type, revision, mode, name and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"separator":{"type":"string","default":"/"}}}}],"tags":["Files"]}},"/data/working-files/{working_file_id}/file":{"post":{"summary":"Store a working file.","responses":{"201":{"description":"Working file stored"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Files"]},"get":{"summary":"Download a working file.","responses":{"200":{"description":"Working file downloaded","schema":{"type":"file"}}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/actions/projects/{project_id}/set-file-tree":{"post":{"summary":"Define a template file to use for given project.","description":"Template files are located on the server side. Each template has a name which means that you just have to give a name to \"select\" the template to link with the project.","responses":{"200":{"description":"Template file defined"},"400":{"description":"Selected tree not available"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Tree name","schema":{"type":"object","required":["tree_name"],"properties":{"tree_name":{"type":"string"}}}}],"tags":["Files"]}},"/actions/working-files/{working_file_id}/comment":{"put":{"summary":"Update comment on given working file.","responses":{"200":{"description":"Comment updated on given working file"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Comment","schema":{"type":"object","required":["comment"],"properties":{"comment":{"type":"string"}}}}],"tags":["Files"]}},"/actions/working-files/{working_file_id}/modified":{"put":{"summary":"Update working file modification date with current date.","responses":{"200":{"description":"Working file modification date updated"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/import/shotgun/persons":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/projects":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/episodes":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/sequences":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/shots":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/scenes":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/assets":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/steps":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/status":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/tasks":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/versions":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/notes":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/errors":{"post":{"summary":"Serialize shotgun error resource.","responses":{"200":{"description":"Resource serialized"}},"tags":["Import"]},"get":{"summary":"Import shotgun error resource.","responses":{"200":{"description":"Resource imported"}},"tags":["Import"]}},"/import/shotgun/projectconnections":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/errors/{error_id}":{"delete":{"summary":"Delete error.","responses":{"204":{"description":"Error deleted"},"404":{"description":"Error non-existant or Statement error"}},"parameters":[{"in":"path","name":"error_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"]}},"/import/shotgun/remove/project":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/person":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/shot":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/scene":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/episode":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/sequence":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/asset":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/projectconnection":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/step":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/status":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/task":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/note":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/version":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/csv/persons":{"post":{"summary":"Import persons via a .csv file.","responses":{"201":{"description":"The lists of imported persons."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/assets":{"post":{"summary":"Import project assets via a .csv file.","responses":{"201":{"description":"The lists of imported assets."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/shots":{"post":{"summary":"Import project shots via a .csv file.","responses":{"201":{"description":"The lists of imported assets."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/edits":{"post":{"summary":"Import project edits.","responses":{"201":{"description":"Edits imported"},"400":{"description":"Format error"}},"parameters":[{"in":"formData","name":"file","type":"file","required":true},{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/casting":{"post":{"summary":"Import project casting links via a .csv file.","responses":{"201":{"description":"The lists of imported casting links."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/task-types/{task_type_id}/estimations":{"post":{"summary":"Import the estimations of task-types for given project.","responses":{"201":{"description":"Estimations imported"},"400":{"description":"Format error"}},"parameters":[{"in":"formData","name":"file","type":"file","required":true},{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/episodes/{episode_id}/task-types/{task_type_id}/estimations":{"post":{"summary":"Import the estimations of task-types for given episode of given project.","responses":{"201":{"description":"Estimations imported"},"400":{"description":"Format error"}},"parameters":[{"in":"formData","name":"file","type":"file","required":true},{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/otio/projects/{project_id}":{"post":{"summary":"Import an OTIO file to enter frame_in / frame_out / nb_frames (it can","description":"be every adapter supported by OpenTimelineIO, for example: EDL, OTIO...
).
","responses":{"201":{"description":"."},"400":{"description":"The .otio file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/otio/projects/{project_id}/episodes/{episode_id}":{"post":{"summary":"Import an OTIO file to enter frame_in / frame_out / nb_frames (it can","description":"be every adapter supported by OpenTimelineIO, for example: edl, otio...
).
","responses":{"201":{"description":"."},"400":{"description":"The .otio file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/kitsu/comments":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/entities":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/entity-links":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/projects":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/tasks":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/":{"get":{"summary":"Get API name and version.","responses":{"200":{"description":"API name and version"}},"tags":["Index"]}},"/status":{"get":{"summary":"Retrieve API name, version and status.","responses":{"200":{"description":"API name, version and status"}},"tags":["Index"]}},"/status/influx":{"get":{"summary":"Retrieve status of database and time.","responses":{"200":{"description":"Status of database, key value, event stream, job queue and time"}},"tags":["Index"]}},"/status/resources":{"get":{"summary":"Retrieve date and CPU, memory and jobs stats.","responses":{"200":{"description":"Date and CPU, memory and jobs stats"}},"tags":["Index"]}},"/status.txt":{"get":{"summary":"Retrieve API name, version and status as txt.","responses":{"200":{"description":"API name, version and status as txt"}},"tags":["Index"]}},"/status/test-event":{"get":{"summary":"Generate a main:test event.","responses":{"200":{"description":"Success flage"}},"tags":["Index"]}},"/stats":{"get":{"summary":"Retrieve main stats.","responses":{"403":{"description":"Permission denied"},"200":{"description":"Main stats"}},"tags":["Index"]}},"/config":{"get":{"summary":"Get crisp token.","responses":{"200":{"description":"Crisp token"}},"tags":["Index"]}},"/data/projects/news":{"get":{"summary":"Retrieve all news related to a given project","responses":{"200":{"description":"All news from user open projects."}},"parameters":[{"in":"query","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"page","type":"integer","x-example":1},{"in":"query","name":"page_size","type":"integer","x-example":50},{"in":"query","name":"person_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_status_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"episode_id","type":"boolean","default":false},{"in":"query","name":"only_preview","type":"boolean","default":false}],"tags":["News"]}},"/data/projects/{project_id}/news":{"get":{"summary":"Retrieve all news related to a given project","responses":{"200":{"description":"All news related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"page","type":"integer","x-example":1},{"in":"query","name":"page_size","type":"integer","x-example":50},{"in":"query","name":"person_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_status_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"episode_id","type":"boolean","default":false},{"in":"query","name":"only_preview","type":"boolean","default":false}],"tags":["News"]}},"/data/projects/{project_id}/news/{news_id}":{"get":{"summary":"Retrieve a single given news related to a given project","responses":{"200":{"description":"Single given news related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"news_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["News"]}},"/data/persons/{person_id}/desktop-login-logs":{"post":{"summary":"Create desktop login logs.","description":"Add a new log entry for desktop logins.","responses":{"201":{"description":"Desktop login log entry created."}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Persons"]},"get":{"summary":"Retrieve desktop login logs.","description":"Desktop login logs can only be created by current user.","responses":{"200":{"description":"Desktop login logs"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/data/persons/presence-logs/{month_date}":{"get":{"summary":"Return a csv file containing the presence logs based on a daily basis.","responses":{"200":{"description":"CSV file containing the presence logs based on a daily basis"}},"parameters":[{"in":"path","name":"month_date","required":true,"type":"string","format":"date","x-example":"2022-07"}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/{date}":{"get":{"summary":"Get time spents for given person and date.","responses":{"200":{"description":"Time spents for given person and date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/{date}":{"get":{"summary":"Get day off object for given person and date.","responses":{"200":{"description":"Day off object for given person and date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/year/{year}":{"get":{"summary":"Get aggregated time spents for given person and year.","responses":{"200":{"description":"Aggregated time spents for given person and year"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/month/{year}/{month}":{"get":{"summary":"Get aggregated time spents for given person and month.","responses":{"200":{"description":"Aggregated time spents for given person and month"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/week/{year}/{week}":{"get":{"summary":"Get aggregated time spents for given person and week.","responses":{"200":{"description":"Aggregated time spents for given person and week"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"week","required":true,"type":"integer","x-example":35,"minimum":1,"maximum":52}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/day/{year}/{month}/{day}":{"get":{"summary":"Get aggregated time spents for given person and day.","responses":{"200":{"description":"Aggregated time spents for given person and day"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12},{"in":"path","name":"day","required":true,"type":"integer","x-example":12,"minimum":1,"maximum":31}],"tags":["Persons"]}},"/data/persons/{person_id}/quota-shots/month/{year}/{month}":{"get":{"summary":"Get ended shots used for quota calculation of this month.","responses":{"200":{"description":"Ended shots used for quota calculation of this month"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"}],"tags":["Persons"]}},"/data/persons/{person_id}/quota-shots/week/{year}/{week}":{"get":{"summary":"Get ended shots used for quota calculation of this week.","responses":{"200":{"description":"Ended shots used for quota calculation of this week"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"week","required":true,"type":"integer","x-example":35,"minimum":1,"maximum":52},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"}],"tags":["Persons"]}},"/data/persons/{person_id}/quota-shots/day/{year}/{month}/{day}":{"get":{"summary":"Get ended shots used for quota calculation of this day.","responses":{"200":{"description":"Ended shots used for quota calculation of this day"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12},{"in":"path","name":"day","required":true,"type":"integer","x-example":12,"minimum":1,"maximum":31},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"}],"tags":["Persons"]}},"/data/persons/time-spents/year-table/":{"get":{"summary":"Return a table giving time spent by user and by month for given year.","responses":{"200":{"description":"Table giving time spent by user and by month for given year"}},"tags":["Persons"]}},"/data/persons/time-spents/month-table/{year}":{"get":{"summary":"Return a table giving time spent by user and by month for given year.","responses":{"200":{"description":"Table giving time spent by user and by month for given year"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/time-spents/week-table/{year}":{"get":{"summary":"Return a table giving time spent by user and by week for given year.","responses":{"200":{"description":"Table giving time spent by user and by week for given year"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/time-spents/day-table/{year}/{month}":{"get":{"summary":"Return a table giving time spent by user and by day for given year and month.","responses":{"200":{"description":"Table giving time spent by user and by day for given year and month"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/day-offs/{year}/{month}":{"get":{"summary":"Return all day off recorded for given month.","responses":{"200":{"description":"All day off recorded for given month"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/week/{year}/{week}":{"get":{"summary":"Return all day off recorded for given week and person.","responses":{"200":{"description":"All day off recorded for given week and person"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"week","required":true,"type":"integer","x-example":35,"minimum":1,"maximum":52}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/month/{year}/{month}":{"get":{"summary":"Return all day off recorded for given month and person.","responses":{"200":{"description":"All day off recorded for given month and person"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/year/{year}":{"get":{"summary":"Return all day off recorded for given year and person.","responses":{"200":{"description":"All day off recorded for given year and person"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs":{"get":{"summary":"Return all day offs recorded for given and person.","responses":{"200":{"description":"All day off recorded for given person."}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/invite":{"get":{"summary":"Sends an email to given person to invite him/her to connect to Kitsu.","responses":{"200":{"description":"Email sent"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/departments/add":{"post":{"summary":"Add a user to given department.","responses":{"201":{"description":"User added to given department"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/departments/{department_id}":{"delete":{"summary":"Remove a user from given department.","responses":{"204":{"description":"User removed from given department"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"department_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/change-password":{"post":{"summary":"Allow admin to change password for given user.","description":"Prior to modifying the password, it requires to be admin. An admin can't change other admins password. The new password requires a confirmation to ensure that the admin didn't make a mistake by typing the new password.","responses":{"200":{"description":"Password changed"},"400":{"description":"Invalid password or inactive user"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password_2","required":true,"type":"string","format":"password"}],"tags":["Persons"]}},"/actions/persons/{person_id}/disable-two-factor-authentication":{"delete":{"summary":"Allow admin to disable two factor authentication for given user.","description":"Prior to disable two factor authentication, it requires to be admin. An admin can't disable two factor authentication for other admins.","responses":{"200":{"description":"Two factor authentication disabled"},"400":{"description":"Inactive user"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/clear-avatar":{"delete":{"summary":"Set `has_avatar` flag to False for current user and remove its avatar","description":"file.
","responses":{"204":{"description":"Avatar file deleted"}},"tags":["User"]}},"/data/projects/{project_id}/playlists":{"get":{"summary":"Retrieve all playlists related to given project.","description":"Result is paginated and can be sorted.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/playlists/all":{"get":{"summary":"Retrieve all playlists related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/episodes/{episode_id}/playlists":{"get":{"summary":"Retrieve all playlists related to given episode.","description":"The full list is returned because the number of playlists in an episode is not that big.","responses":{"200":{"description":"All playlists related to given episode"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/playlists/{playlist_id}":{"get":{"summary":"Retrieve all playlists related to given project.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/playlists/entities/{entity_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given entity.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/jobs/{build_job_id}":{"get":{"summary":"Retrieve build job related to given playlist.","responses":{"200":{"description":"Build job related to given playlist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"build_job_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]},"delete":{"summary":"Remove given build job related to given playlist.","responses":{"204":{"description":"Given build job removed"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"build_job_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/build-jobs":{"get":{"summary":"Retrieve all build jobs related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All build jobs related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/build/mp4":{"get":{"summary":"Build given playlist as mp4 movie.","responses":{"200":{"description":"Given playlist built as mp4 movie"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"],"produces":["multipart/form-data"]}},"/data/playlists/{playlist_id}/jobs/{build_job_id}/build/mp4":{"get":{"summary":"Download given playlist build as .mp4.","responses":{"200":{"description":"Given playlist build downloaded as .mp4"},"400":{"description":"Build not finished, need to retry later"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"build_job_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"],"produces":["multipart/form-data"]}},"/data/playlists/{playlist_id}/download/zip":{"get":{"summary":"Download given playlist as zip.","responses":{"200":{"description":"Given playlist downloaded as zip","schema":{"type":"file"}}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"],"produces":["multipart/form-data"]}},"/data/projects/{project_id}/playlists/temp":{"post":{"summary":"Retrieve all playlists related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/open":{"get":{"summary":"Return the list of projects currently running.","description":"Most of the time, past projects are not needed.","responses":{"200":{"description":"All running projects"}},"tags":["Projects"]}},"/data/projects/all":{"get":{"summary":"Return all projects listed in database.","description":"Ensure that user has at least the manager level before that.","responses":{"200":{"description":"All projects listed in database"}},"tags":["Projects"]}},"/data/projects/{project_id}/team":{"post":{"summary":"Add a person to a production team.","responses":{"201":{"description":"Person added to the production team"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Return the people listed in a production team.","responses":{"200":{"description":"People listed in a production team"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/task-types":{"get":{"summary":"Retrieve task types linked to the production","responses":{"200":{"description":"Task types linked to the production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/team/{person_id}":{"delete":{"summary":"Remove people listed in a production team.","responses":{"204":{"description":"Person removed from production team"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/asset-types":{"post":{"summary":"Add an asset type linked to a production.","responses":{"201":{"description":"Asset type added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/asset-types/{asset_type_id}":{"delete":{"summary":"Remove an asset type from a production.","responses":{"204":{"description":"Asset type removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-types":{"post":{"summary":"Add a task type linked to a production.","responses":{"201":{"description":"Asset type added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"priority","required":false,"type":"string","default":"None"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-types/{task_type_id}":{"delete":{"summary":"Remove a task type from a production.","responses":{"204":{"description":"Task type removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-status":{"post":{"summary":"Add a task type linked to a production.","responses":{"201":{"description":"Task type added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"task_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Return task statuses linked to a production","responses":{"200":{"description":"Task statuses linked to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-status/{task_status_id}":{"delete":{"summary":"Remove a task status from a production.","responses":{"204":{"description":"Task status removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/status-automations":{"post":{"summary":"Add a status automation linked to a production.","responses":{"201":{"description":"Status automation added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"status_automation_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Get a status automation linked to a production.","responses":{"200":{"description":"Status automation linked to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/status-automations/{status_automation_id}":{"delete":{"summary":"Remove a status automation from a production.","responses":{"204":{"description":"Status automation removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"status_automation_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/preview-background-files/{preview_background_file_id}":{"delete":{"summary":"Remove a preview background file from a production.","responses":{"204":{"description":"Preview background file removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"preview_background_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/preview-background-files":{"post":{"summary":"Add a preview background file linked to a production.","responses":{"201":{"description":"Preview background file added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"preview_background_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Return preview background files linked to a production","responses":{"200":{"description":"Preview background files linked to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/metadata-descriptors":{"post":{"summary":"Create a new metadata descriptor","description":"It serves to describe extra fields listed in the data attribute of entities.","responses":{"201":{"description":"Create a new metadata descriptor"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Get all metadata descriptors","description":"It serves to describe extra fields listed in the data attribute of entities.","responses":{"200":{"description":"All metadata descriptors"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/metadata-descriptors/{descriptor_id}":{"put":{"summary":"Update a metadata descriptor.","description":"Descriptors serve to describe extra fields listed in the data attribute of entities.","responses":{"200":{"description":"Metadata descriptor updated"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"descriptor_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":false,"type":"string"},{"in":"formData","name":"for_client","required":false,"type":"boolean","default":false},{"in":"formData","name":"choices","required":false,"type":"array"},{"in":"formData","name":"departments","type":"array","required":false}],"tags":["Projects"]},"get":{"summary":"Get a metadata descriptor.","description":"Descriptors serve to describe extra fields listed in the data attribute of entities.","responses":{"200":{"description":"Metadata descriptor"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"descriptor_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"delete":{"summary":"Delete a metadata descriptor.","description":"Descriptors serve to describe extra fields listed in the data attribute of entities.","responses":{"204":{"description":"Metadata descriptor deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"descriptor_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/milestones":{"get":{"summary":"Retrieve milestones for given production","responses":{"200":{"description":"All milestones of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items":{"get":{"summary":"Retrieve schedule items for given production","responses":{"200":{"description":"All schedule items of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/task-types":{"get":{"summary":"Retrieve task type schedule items for given production","responses":{"200":{"description":"All task types schedule items of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/asset-types":{"get":{"summary":"Retrieve asset types schedule items for given task type","responses":{"200":{"description":"All asset types schedule items for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/episodes":{"get":{"summary":"Retrieve episodes schedule items for given task type","responses":{"200":{"description":"All episodes schedule items for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/sequences":{"get":{"summary":"Retrieve sequences schedule items for given task type","responses":{"200":{"description":"All sequences schedule items for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/time-spents":{"get":{"summary":"Retrieve time spents for given production","responses":{"200":{"description":"All time spents of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/shots":{"get":{"summary":"Retrieve all shot entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All shot entries"}},"parameters":[{"in":"query","name":"sequence_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"parent_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/all":{"get":{"summary":"Retrieve all shot entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All shot entries"}},"parameters":[{"in":"query","name":"sequence_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"parent_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/with-tasks":{"get":{"summary":"Retrieve all shots, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All shots"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}":{"put":{"summary":"Update given shot.","responses":{"200":{"description":"Update given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"data","required":true,"type":"object"}],"tags":["Shots"]},"get":{"summary":"Retrieve given shot.","responses":{"200":{"description":"Given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given shot.","responses":{"204":{"description":"Given shot deleted"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/assets":{"get":{"summary":"Retrieve all assets for a given shot.","responses":{"200":{"description":"All assets for given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given shot.","responses":{"200":{"description":"All task types related to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given shot.","responses":{"200":{"description":"All tasks related to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given shot.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given episode"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/versions":{"get":{"summary":"Retrieve data versions of given shot.","responses":{"204":{"description":"Data versions of given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/all":{"get":{"summary":"Retrieve all scene entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All scene entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/with-tasks":{"get":{"summary":"Retrieve all scenes, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All scenes"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}":{"get":{"summary":"Retrieve given scene.","responses":{"200":{"description":"Given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given scene.","responses":{"204":{"description":"Given scene deleted"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given scene.","responses":{"200":{"description":"All tasks related to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given scene.","responses":{"200":{"description":"All task types related to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/shots":{"post":{"summary":"Mark given scene as source of given shot.","responses":{"200":{"description":"Given scene marked as source of given shot"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"shot_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"get":{"summary":"Retrieve all shots that come from given scene.","responses":{"200":{"description":"All shots that come from given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/shots/{shot_id}":{"delete":{"summary":"Delete given shot from given scene.","responses":{"204":{"description":"Given shot deleted from given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes":{"get":{"summary":"Retrieve all episode entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All episode entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/with-tasks":{"get":{"summary":"Retrieve all episodes, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All episodes"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}":{"get":{"summary":"Retrieve given episode.","responses":{"200":{"description":"Given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given episode.","responses":{"204":{"description":"Given episode deleted"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/shots":{"get":{"summary":"Retrieve all shots related to a given episode.","responses":{"200":{"description":"All shots related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/sequences":{"get":{"summary":"Retrieve all sequence entries for a given episode.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All sequence entries for given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given episode.","responses":{"200":{"description":"All tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given episode.","responses":{"200":{"description":"All task types related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/shot-tasks":{"get":{"summary":"Retrieve all shots tasks related to a given episode.","responses":{"200":{"description":"All shots tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/asset-tasks":{"get":{"summary":"Retrieve all assets tasks related to a given episode.","responses":{"200":{"description":"All assets tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences":{"get":{"summary":"Retrieve all sequence entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All sequence entries"}},"parameters":[{"in":"query","name":"episode_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/with-tasks":{"get":{"summary":"Retrieve all sequences, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All sequences"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}":{"get":{"summary":"Retrieve given sequence.","responses":{"200":{"description":"Given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given sequence.","responses":{"204":{"description":"Given sequence deleted"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/shots":{"get":{"summary":"Retrieve all shot entries for a given sequence.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All shot entries for given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/scenes":{"get":{"summary":"Retrieve all scenes related to a given sequence.","responses":{"200":{"description":"All scenes related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given shot.","responses":{"200":{"description":"All tasks related to given shot"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given shot.","responses":{"200":{"description":"All task types related to given shot"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/shot-tasks":{"get":{"summary":"Retrieve all tasks related to a given sequence.","responses":{"200":{"description":"All task types related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/shots":{"post":{"summary":"Create a shot for given project.","responses":{"201":{"description":"Shot created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of shot"},{"in":"formData","name":"description","type":"string","x-example":"Description of shot"},{"in":"formData","name":"sequence_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"nb_frames","type":"integer"}],"tags":["Shots"]},"get":{"summary":"Retrieve all shots related to a given project.","responses":{"200":{"description":"All shots related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/scenes":{"post":{"summary":"Create a scene for given project.","responses":{"201":{"description":"Scene created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of scene"},{"in":"formData","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"get":{"summary":"Retrieve all scenes related to a given project.","responses":{"200":{"description":"All scenes related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/sequences":{"post":{"summary":"Create a sequence for given project.","responses":{"201":{"description":"Sequence created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of sequence"},{"in":"formData","name":"episode_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"get":{"summary":"Retrieve all sequences related to a given project.","responses":{"200":{"description":"All sequences related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/episodes":{"post":{"summary":"Create an episode for given project.","responses":{"201":{"description":"Episode created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of the episode"},{"in":"formData","name":"description","required":true,"type":"string","x-example":"Description of the episode"}],"tags":["Shots"]},"get":{"summary":"Retrieve all episodes related to a given project.","responses":{"200":{"description":"All episodes related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/episodes/stats":{"get":{"summary":"Retrieve number of tasks by status, task_types and episodes for given project.","responses":{"200":{"description":"Number of tasks by status, task types and episodes for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/episodes/retake-stats":{"get":{"summary":"Retrieve number of tasks by status, task_types and episodes for given project.","responses":{"200":{"description":"Number of tasks by status, task types and episodes for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/quotas/{task_type_id}":{"get":{"summary":"Retrieve quotas statistics for shots.","responses":{"200":{"description":"Quotas statistics for shots"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"},{"in":"query","name":"studio_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/set-shot-nb-frames":{"post":{"summary":"Set frames for given shots.","responses":{"200":{"description":"Frames set for given shots"}},"parameters":[{"in":"formData","name":"shots","required":true,"type":"array","items":{"type":"object","properties":{"shot_id":{"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},"nb_frames":{"type":"integer","x-example":24}}}}],"tags":["Shots"]}},"/data/tasks/open-tasks":{"get":{"summary":"Return all tasks related to open projects.","responses":{"200":{"schema":{"type":"object","properties":{"data":{"type":"array","description":"List of tasks"},"stats":{"type":"object","properties":{"total":{"type":"integer","description":"Total number of tasks"},"total_duration":{"type":"integer","description":"Total duration of tasks in minutes"},"total_estimation":{"type":"integer","description":"Total estimation of tasks in minutes"},"status":{"type":"object","description":"Number of tasks per status"}}},"limit":{"type":"integer","description":"Number of tasks per page"},"page":{"type":"integer","description":"Page number"},"is_more":{"type":"boolean","description":"True if there are more tasks to retrieve"}}}}},"parameters":[{"in":"query","name":"project_id","description":"Filter tasks on given project ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_status_id","description":"Filter tasks on given task status ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","description":"Filter tasks on given task type ID ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"person_id","description":"Filter tasks on given person ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"start_date","description":"Filter tasks posterior to given start date","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"due_date","description":"Filter tasks anterior to given due date","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"priority","description":"Filter tasks on given priority","type":"integer","x-example":"3"},{"in":"query","name":"page","description":"Page number","type":"integer","x-example":1,"default":1},{"in":"query","name":"limit","description":"Number of tasks per page","type":"integer","x-example":100,"default":100}],"tags":["Tasks"]}},"/data/tasks/open-tasks/stats":{"get":{"summary":"Return task amount, task done amount, total estimation, total duration","description":"by status by task type by project for open projects. It aggregates the
result at the project level.
","responses":{"200":{"description":"A dict organized by project that contains the results for each task type and status pairs."}},"tags":["Tasks"]}},"/data/tasks/{task_id}/comments":{"get":{"summary":"Return comments linked to given task.","responses":{"200":{"description":"Comments linked to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/comments/{comment_id}":{"get":{"summary":"Get comment corresponding at given ID.","responses":{"200":{"description":"Comment corresponding at given ID"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]},"delete":{"summary":"Delete a comment corresponding at given ID.","responses":{"204":{"description":"Comment corresponding at given ID deleted"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/previews":{"get":{"summary":"Return previews linked to given task.","responses":{"200":{"description":"Previews linked to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/full":{"get":{"summary":"Return a task with many information.","description":"Full details for assignees, full details for task type, full details for task status, etc.","responses":{"200":{"description":"Task with many information"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/{person_id}/tasks":{"get":{"summary":"Return task assigned to given user of which status has is_done flag sets to false.","responses":{"200":{"description":"Tasks assigned to user that are not done"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/{person_id}/related-tasks/{task_type_id}":{"get":{"summary":"For all entities assigned to given person (that have at least one task assigned to given person), returns all tasks for given task type.","responses":{"200":{"description":"All Tasks for given task type"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/{person_id}/done-tasks":{"get":{"summary":"Return task assigned to given user of which status has is_done flag sets to true.","description":"It return only tasks related to open projects.","responses":{"200":{"description":"Tasks assigned to user that are done"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/entities/{entity_id}/task-types/{task_type_id}/tasks":{"get":{"summary":"Return tasks related to given entity asset, episode, sequence, shot or scene.","responses":{"200":{"description":"Tasks related to given entity asset, episode, sequence, shot or scene"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/comments":{"get":{"summary":"Retrieve all comments to tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All comments to tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/notifications":{"get":{"summary":"Retrieve all notifications to tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All notifications to tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/preview-files":{"get":{"summary":"Preview files related to a given project.","responses":{"200":{"description":"Preview files related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/subscriptions":{"get":{"summary":"Retrieve all subcriptions to tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All subcriptions to tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/tasks":{"get":{"summary":"Retrieve all tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"page","required":false,"type":"integer","x-example":1},{"in":"query","name":"task_type_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"episode_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/task-dates":{"get":{"summary":"For schedule usages, for each active person, it returns the first start","description":"date of all tasks of assigned to this person and the last end date.
","responses":{"200":{"description":"For each person, the first start date of all tasks of assigned to this person and the last end date."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/delete-tasks":{"delete":{"summary":"Delete all tasks for a given task type and project.","description":"It's mainly used when tasks are created by mistake at the beginning of the project.","responses":{"204":{"description":"All tasks for given task type and project deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/delete-tasks":{"post":{"summary":"Delete tasks matching id list given in parameter.","description":"See it as a way to batch delete tasks.","responses":{"200":{"description":"Tasks matching id list given in parameter deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/assign":{"put":{"summary":"Assign given task list to given person.","responses":{"200":{"description":"Given task assigned to given person"},"400":{"description":"Assignee non-existent in database"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Person","description":"Person ID","schema":{"type":"object","required":["person_id"],"properties":{"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Tasks"]}},"/actions/tasks/clear-assignation":{"put":{"summary":"Remove all assignations set to given task.","responses":{"200":{"description":"All assignations removed"}},"parameters":[{"in":"body","name":"Task","description":"List of tasks ID and person ID","schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Tasks"]}},"/actions/persons/{person_id}/assign":{"put":{"summary":"Assign given task lists to given person.","description":"If a given task ID is wrong, it ignores it.","responses":{"200":{"description":"Given tasks lists assigned to given person"}},"parameters":[{"in":"path","name":"person_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true},{"in":"body","name":"Task","description":"List of tasks ID","schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents/{date}":{"get":{"summary":"Get time spent on a given task and date.","responses":{"200":{"description":"Time spent on given task and date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents":{"get":{"summary":"Get time spent on a given task.","responses":{"200":{"description":"Time spent on given task"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents/{date}/persons/{person_id}":{"post":{"summary":"Set time spent by a person on a task for a given day.","responses":{"201":{"description":"Time spent by given person on given task for given day is set"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Duration","schema":{"type":"object","properties":{"duration":{"type":"float"}}}}],"tags":["Tasks"]},"delete":{"summary":"Delete time spent by a person on a task for a given day.","responses":{"201":{"description":"Time spent by given person on given task for given day is removed"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents/{date}/persons/{person_id}/add":{"post":{"summary":"Add given timeframe to time spent by a person on a task for a given day.","responses":{"201":{"description":"Given timeframe added to time spent by given person on given task for given day"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Duration","schema":{"type":"object","properties":{"duration":{"type":"float"}}}}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/comments/{comment_id}/add-preview":{"post":{"summary":"Add preview metadata to given task. The preview file itself should be","description":"uploaded afterward.

Revision is automatically set: it is equal to last revision + 1. It can
be also set manually.
","responses":{"201":{"description":"Preview metadata added to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","schema":{"type":"object","properties":{"revision":{"type":"integer"}}}}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/comments/{comment_id}/preview-files/{preview_file_id}":{"post":{"summary":"Add a preview to given comment.","responses":{"201":{"description":"Preview added to given comment"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Tasks"]},"delete":{"summary":"Delete preview from given comment.","responses":{"204":{"description":"Preview deleted from given comment"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/to-review":{"put":{"summary":"Change a task status to \"to review\".","description":"It creates a new preview file entry and set path from the hard disk.","responses":{"200":{"description":"Task status changed to \"to review\""},"400":{"description":"Given person not found"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Task","description":"person ID, name, comment, revision and change status of task","schema":{"type":"object","properties":{"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"name":{"type":"string"},"revision":{"type":"integer"},"change_status":{"type":"boolean"}}}}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/shots/create-tasks":{"post":{"summary":"Create a new task for given shot and task type.","responses":{"201":{"description":"New task for given shot and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/assets/create-tasks":{"post":{"summary":"Create a new task for given asset and task type.","responses":{"201":{"description":"New task for given asset and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/edits/create-tasks":{"post":{"summary":"Create a new task for given edit and task type.","responses":{"201":{"description":"New task for given edit and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/concepts/create-tasks":{"post":{"summary":"Create a new task for given concept and task type.","responses":{"201":{"description":"New task for given concept and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/create-tasks/{entity_type}/":{"post":{"summary":"Create a new task with given task type for each entity of given","description":"entity type.
","responses":{"201":{"description":"List of created tasks."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/set-main-preview":{"put":{"summary":"Set last preview from given task as main preview of the related entity.","description":"This preview will be used as thumbnail to illustrate the entity.
","responses":{"200":{"description":"Given preview set as main preview"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Task"]}},"/data/playlists/preview-files/running":{"get":{"summary":"Retrieve all preview files from open productions with states equals to processing or broken.","responses":{"200":{"description":"All preview files from open productions with states equals to processing or broken"}},"tags":["Previews"]}},"/pictures/preview-files/{instance_id}":{"post":{"summary":"Main resource to add a preview.","description":"It stores the preview file and generates three picture files matching preview when it's possible: a square thumbnail, a rectangle thumbnail and a midsize file.","responses":{"200":{"description":"Preview added"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]}},"/movies/originals/preview-files/{instance_id}.mp4":{"get":{"summary":"Download a movie preview.","description":"It stores the preview file and generates three picture files matching preview when it's possible: a square thumbnail, a rectangle thumbnail and a midsize file.","responses":{"200":{"description":"Movie preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"File not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/movies/originals/preview-files/{instance_id}/download":{"get":{"summary":"Download a movie preview.","responses":{"200":{"description":"Movie preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"File not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/movies/low/preview-files/{instance_id}.mp4":{"get":{"summary":"Download a lowdef movie preview.","responses":{"200":{"description":"Lowdef movie preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"File not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/attachment-files/{attachment_file_id}.png":{"get":{"summary":"Download the thumbnail representing given attachment file.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"attachment_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails-square/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/originals/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/originals/preview-files/{instance_id}.{extension}":{"get":{"summary":"Download a generic file preview.","responses":{"200":{"description":"Generic file preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Non-movie file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"extension","required":true,"type":"string","x-example":"png, pdf, jpg, jpeg, ..."}],"tags":["Previews"]}},"/pictures/originals/preview-files/{instance_id}/download":{"get":{"summary":"Download a generic file preview as attachment.","responses":{"200":{"description":"Generic file preview downloaded as attachment"},"403":{"description":"Instance not allowed"},"404":{"description":"Standard file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/previews/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/movies/tiles/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/organisations/{instance_id}":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/organisations/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/persons/{instance_id}":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/persons/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/projects/{instance_id}":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/projects/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/preview-background-files/{instance_id}":{"post":{"summary":"Main resource to add a preview background file.","responses":{"200":{"description":"Preview background file added"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Preview background file"],"consumes":["multipart/form-data","image/vnd.radiance"]}},"/pictures/thumbnails/preview-background-files/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/preview-background-files/{instance_id}.{extension}":{"get":{"summary":"Download a preview background file.","responses":{"200":{"description":"Preview background file downloaded"},"404":{"description":"Preview background file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"extension","required":true,"type":"string","format":"extension","x-example":"hdr"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/set-main-preview":{"put":{"summary":"Set given preview as main preview of the related entity.","description":"This preview will be used to illustrate the entity.","responses":{"200":{"description":"Given preview set as main preview"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/extract-frame":{"get":{"summary":"Extract a frame from a preview_file","description":" ","responses":{"200":{"description":"Extracted frame"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/update-position":{"put":{"summary":"Allow to change orders of previews for a single revision.","description":"This preview will be used to illustrate the entity.","responses":{"200":{"description":"Orders of previews changed for a single revision"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/update-annotations":{"put":{"summary":"Allow to modify the annotations stored at the preview level.","description":"Modifications are applied via three fields:\n* `annotations` to give all the annotations that need to be added.\n\n* `updates` that list annotations that needs to be modified.\n\n* `deletions` to list the IDs of annotations that needs to be removed.\n","responses":{"200":{"description":"Orders of previews changed for a single revision"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/data/user/context":{"get":{"summary":"Return context required to properly run a full app connected to the API","description":"(like the Kitsu web client).
","responses":{"200":{"description":"Context to properly run a full app connected to the API"}},"tags":["User"]}},"/data/user/assets/{asset_id}/tasks":{"get":{"summary":"Return tasks related to given asset for current user.","responses":{"200":{"description":"Tasks related to given asset for current user"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/shots/{shot_id}/tasks":{"get":{"summary":"Return tasks related to given shot for current user.","responses":{"200":{"description":"Tasks related to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/scenes/{scene_id}/tasks":{"get":{"summary":"Return tasks related to given scene for current user.","responses":{"200":{"description":"Tasks related to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/tasks":{"get":{"summary":"Return tasks related to given sequence for current user.","responses":{"200":{"description":"Tasks related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/assets/{asset_id}/task-types":{"get":{"summary":"Return task types related to given asset for current user.","responses":{"200":{"description":"Task types related to given asset for current user"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/shots/{shot_id}/task-types":{"get":{"summary":"Return tasks related to given shot for current user.","responses":{"200":{"description":"Tasks related to given shot for current user"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/scenes/{scene_id}/task-types":{"get":{"summary":"Return tasks related to given scene for current user.","responses":{"200":{"description":"Tasks related to given scene for current user"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/task-types":{"get":{"summary":"Return tasks related to given sequence for current user.","responses":{"200":{"description":"Tasks related to given sequence for current user"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/open":{"get":{"summary":"Return open projects for which the user has at least one task assigned.","responses":{"200":{"description":"Open projects for which the user has at least one task assigned"}},"tags":["User"]}},"/data/user/projects/{project_id}/asset-types":{"get":{"summary":"Return asset types related to given project if the current user has","description":"access to it.
","responses":{"200":{"description":"Asset types related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/asset-types/{asset_type_id}/assets":{"get":{"summary":"Return assets of which type is given asset type and are listed in given","description":"project if user has access to this project.
","responses":{"200":{"description":"Assets of which type is given asset type and are listed in given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/sequences":{"get":{"summary":"Return sequences related to given project if the current user has access","description":"to it.
","responses":{"200":{"description":"Sequences related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/episodes":{"get":{"summary":"Return episodes related to given project if the current user has access","description":"to it.
","responses":{"200":{"description":"Episodes related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/shots":{"get":{"summary":"Return shots related to given sequence if the current user has access","description":"to it.
","responses":{"200":{"description":"Shots related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/scenes":{"get":{"summary":"Return scenes related to given sequence if the current user has access","description":"to it.
","responses":{"200":{"description":"Scenes related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/tasks":{"get":{"summary":"Return tasks currently assigned to current user and of which status has","description":"is_done attribute set to false.
","responses":{"200":{"description":"Unfinished tasks currently assigned to current user"}},"tags":["User"]}},"/data/user/tasks-to-check":{"get":{"summary":"Return tasks requiring feedback for current user departments.","description":"
If the user is not a supervisor, it returns an empty list.
","responses":{"200":{"description":"Tasks requiring feedback in current user departments."}},"tags":["User"]}},"/data/user/done-tasks":{"get":{"summary":"Return tasks currently assigned to current user and of which status has","description":"is_done attribute set to true.
","responses":{"200":{"description":"Finished tasks currently assigned to current user"}},"tags":["User"]}},"/data/user/filters":{"post":{"summary":"Create filter for current user and only for open projects.","responses":{"201":{"description":"Filter for current user and only for open projects created"}},"parameters":[{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of filter"},{"in":"formData","name":"query","required":true,"type":"string"},{"in":"formData","name":"list_type","required":true,"type":"string"},{"in":"formData","name":"entity_type","required":false,"type":"string"},{"in":"formData","name":"project_id","required":true,"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"get":{"summary":"Retrieve filters for current user and only for open projects.","responses":{"200":{"description":"Filters for current user and only for open projects"}},"tags":["User"]}},"/data/user/filters/{filter_id}":{"put":{"summary":"Update given filter if it's owned by current user.","responses":{"200":{"description":"Given filter with updated data."}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"delete":{"summary":"Delete given filter if it's owned by current user.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/filter-groups":{"post":{"summary":"Create filter group for current user and only for open projects.","responses":{"201":{"description":"Filter groups for the current user and only for open projects created."}},"parameters":[{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of filter"},{"in":"formData","name":"color","required":true,"type":"string"},{"in":"formData","name":"list_type","required":true,"type":"string"},{"in":"formData","name":"entity_type","required":false,"type":"string"},{"in":"formData","name":"project_id","required":true,"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"get":{"summary":"Retrieve filter groups for current user and only for open projects.","responses":{"200":{"description":"Filter groups for current user and only for open projects"}},"tags":["User"]}},"/data/user/filter-groups/{filter_group_id}":{"put":{"summary":"Update given filter group if it's owned by the current user.","responses":{"200":{"description":"Given filter group with updated data"}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"get":{"summary":"Retrieve given filter group for the current user.","responses":{"200":{"description":"Filter groups for the current user and only for open projects"}},"tags":["User"]},"delete":{"summary":"Delete given filter group if it's owned by the current user.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/desktop-login-logs":{"post":{"summary":"Create a desktop login log.","description":"The desktop login log can only be created by the current user.","responses":{"201":{"description":"Desktop login log created"}},"parameters":[{"in":"formData","name":"date","type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]},"get":{"summary":"Retrieve desktop login logs.","responses":{"200":{"description":"Desktop login logs"}},"tags":["User"]}},"/data/user/tasks/{task_id}/time-spents/{date}":{"get":{"summary":"Get time spents for current user and given date.","responses":{"200":{"description":"Time spents for current user and given date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]}},"/data/user/day-offs/{date}":{"get":{"summary":"Get day off object for current user and given date.","responses":{"200":{"description":"Day off object for current user and given date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]}},"/data/user/notifications":{"get":{"summary":"Return last 100 user notifications filtered by given parameters.","responses":{"200":{"description":"100 last user notifications"}},"parameters":[{"in":"formData","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"formData","name":"before","type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]}},"/data/user/notifications/{notification_id}":{"put":{"summary":"Change notification read status.","responses":{"200":{"description":"Notification"}},"parameters":[{"in":"path","name":"notification_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"get":{"summary":"Return notification matching given id, only if it's a notification that","description":"belongs to current user.
","responses":{"200":{"description":"Notification matching given ID"}},"parameters":[{"in":"path","name":"notification_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/tasks/{task_id}/subscribed":{"get":{"summary":"Return true if current user has subscribed to given task.","responses":{"200":{"description":"True if current user has subscribed to given task, False otherwise"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/chats":{"get":{"summary":"Return chats where user is participant.","responses":{"200":{"description":"Chats where user is participant"}},"tags":["User"]}},"/actions/user/chats/{entity_id}/join":{"post":{"summary":"Join chat for given entity (be listed as participant).","responses":{"201":{"description":"Chat joined"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"delete":{"summary":"Leave chat for given entity (be removed from participants).","responses":{"204":{"description":"empty response"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/tasks/{task_id}/subscribe":{"post":{"summary":"Create a subscription entry for given task and current user.","description":"When a user subscribes, he gets notified everytime a comment is posted on the task.","responses":{"201":{"description":"Subscription entry created"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/tasks/{task_id}/unsubscribe":{"delete":{"summary":"Remove the subscription entry matching given task and current user.","description":"The user will no longer receive notifications for this task.","responses":{"204":{"description":"Subscription entry removed"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/clear-avatar":{"delete":{"summary":"Set `has_avatar` flag to False for current user and remove its avatar","description":"file.
","responses":{"204":{"description":"Avatar file deleted"}},"tags":["User"]}},"/data/user/entities/{sequence_id}/task-types/{task_type_id}/subscribed":{"get":{"summary":"Return true if current user has subscribed to given sequence and","description":"task type.
","responses":{"200":{"description":"True if current user has subscribed to given sequence and task type, False otherwise"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/task-types/{task_type_id}/sequence-subscriptions":{"get":{"summary":"Return the list of sequence ids to which the current user has","description":"subscribed for given task type.
","responses":{"200":{"description":"List of sequence ids to which the current user has subscribed for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/sequences/{sequence_id}/task-types/{task_type_id}/subscribe":{"post":{"summary":"Create a subscription entry for given sequence,","description":"task type and current user.
","responses":{"201":{"description":"Subscription entry created"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/sequences/{sequence_id}/task-types/{task_type_id}/unsubscribe":{"delete":{"summary":"Remove a subscription entry for given sequence, tasl type","description":"and current user.
","responses":{"204":{"description":"Subscription entry removed"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/notifications/mark-all-as-read":{"post":{"summary":"Mark all notifications as read for the current user.","responses":{"200":{"description":"All notifications marked as read"}},"tags":["User"]}},"/data/edits":{"get":{"summary":"Retrieve all edit entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All edit entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"name","required":false,"type":"string","x-example":"Name of edit"},{"in":"query","name":"force","required":false,"type":"boolean","default":false}],"tags":["Edits"]}},"/data/edits/all":{"get":{"summary":"Retrieve all edit entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All edit entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"name","required":false,"type":"string","x-example":"Name of edit"},{"in":"query","name":"force","required":false,"type":"boolean","default":false}],"tags":["Edits"]}},"/data/edits/with-tasks":{"get":{"summary":"Retrieve all edits, adds project name and all related tasks.","responses":{"200":{"description":"All edits and all related tasks."}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"name","required":false,"type":"string","x-example":"Name of edit"},{"in":"query","name":"force","required":false,"type":"boolean","default":false}],"tags":["Edits"]}},"/data/edits/{edit_id}":{"get":{"summary":"Retrieve given edit.","responses":{"200":{"description":"Given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]},"delete":{"summary":"Delete given edit.","responses":{"204":{"description":"Given edit deleted"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given edit.","responses":{"200":{"description":"All task types related to given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given edit.","responses":{"200":{"description":"All tasks related to given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given edit.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/versions":{"get":{"summary":"Retrieve data versions of given edit.","responses":{"200":{"description":"Data versions of given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/episodes/{episode_id}/edits":{"get":{"summary":"Retrieve all edits related to a given episode.","responses":{"200":{"description":"All efits related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/episodes/{episode_id}/edit-tasks":{"get":{"summary":"Retrieve all tasks related to a given episode.","responses":{"200":{"description":"All tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/projects/{project_id}/edits":{"post":{"summary":"Create an edit for given project.","responses":{"201":{"description":"Edit created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of edit"},{"in":"formData","name":"description","type":"string","x-example":"Description of edit"},{"in":"formData","name":"episode_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]},"get":{"summary":"Retrieve all edits related to a given project.","responses":{"200":{"description":"All edits related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/search":{"post":{"summary":"Search for resource","responses":{"200":{"description":"List of entities that contain the query"}},"parameters":[{"in":"formData","name":"query","required":true,"type":"string","x-example":"test will search for test"},{"in":"formData","name":"limit","required":false,"type":"integer","default":3,"x-example":3},{"in":"formData","name":"index_names","required":false,"type":"list of strings","default":["assets","shots","persons"],"x-example":["assets"]}],"tags":["Search"]}},"/data/concepts":{"get":{"summary":"Retrieve all concept entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All concept entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"parent_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/with-tasks":{"get":{"summary":"Retrieve all concepts, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All concepts"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}":{"get":{"summary":"Retrieve given concept.","responses":{"200":{"description":"Given concept"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]},"delete":{"summary":"Delete given concept.","responses":{"204":{"description":"Given concept deleted"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given concept.","responses":{"200":{"description":"All task types related to given concept"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given concept.","responses":{"200":{"description":"All tasks related to given concept"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given concept.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given episode"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/projects/{project_id}/concepts":{"post":{"summary":"Create a concept for given project.","responses":{"201":{"description":"Concept created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of concept"},{"in":"formData","name":"description","type":"string","x-example":"Description of concept"},{"in":"formData","name":"entity_concept_links","type":"list of UUIDs","x-example":["a24a6ea4-ce75-4665-a070-57453082c25"]}],"tags":["Concepts"]},"get":{"summary":"Retrieve all concepts related to a given project.","responses":{"200":{"description":"All concepts related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}}},"components":{"securitySchemes":{"JWT Authorization":{"name":"Authorization","in":"header","type":"apiKey","description":"Format in header: **Authorization: Bearer {token}**. \n\n Value example: Bearer xxxxx.yyyyy.zzzzz"}}},"openapi":"3.0.2","externalDocs":{"description":"Read the installation documentation","url":"https://zou.cg-wire.com"},"host":"localhost:8080","basePath":"/api","schemes":["http","https"],"security":[{"JWT Authorization":[]}],"tags":[{"name":"Authentication"},{"name":"Assets"},{"name":"Breakdown"},{"name":"Comments"},{"name":"Crud"},{"name":"Edits"},{"name":"Entities"},{"name":"Events"},{"name":"Export"},{"name":"Files"},{"name":"Import"},{"name":"Index"},{"name":"News"},{"name":"Persons"},{"name":"Playlists"},{"name":"Previews"},{"name":"Projects"},{"name":"Search"},{"name":"Shots"},{"name":"Tasks"},{"name":"User"}]} \ No newline at end of file +{"info":{"title":"Kitsu API","description":"\n## Welcome to the Kitsu API specification\n```Version: 0.19.58```\n\nThe Kitsu API allows to store and manage the data of your animation/VFX production. Through it you can link all the tools of your pipeline and make sure they are all synchronized.\n\nAn easy to use Python client to access this API is available:\n[Python Kitsu Client documentation](https://gazu.cg-wire.com/)\n\n## Authentication
\n\n

Before you can use any of the endpoints outline below,\nyou will have to get a JWT token to authorize your requests.\n

\n\n

\nYou will find the information to retrieve it in the \nZou documentation.\n

\n\n[OpenAPI definition](/openapi.json)\n","contact":{"name":"CGWire","url":"https://www.cg-wire.com"},"version":"0.19.58","license":{"name":"AGPL 3.0","url":"https://www.gnu.org/licenses/agpl-3.0.en.html"}},"paths":{"/auth/login":{"post":{"summary":"Log in user by creating and registering auth tokens.","description":"Login is based on email and password. If no user match given email and a destkop ID, it looks in matching the desktop ID with the one stored in database. It is useful for clients that run on desktop tools and that don't know user email.","responses":{"200":{"description":"Login successful"},"400":{"description":"Login failed"},"500":{"description":"Database not reachable"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"},{"in":"formData","name":"password","required":true,"type":"string","format":"password","x-example":"mysecretpassword"},{"in":"formData","name":"otp","required":false,"type":"string","format":"password","x-example":123456}],"tags":["Authentication"]}},"/auth/logout":{"get":{"summary":"Log user out by revoking his auth tokens.","description":"Once logged out, current user cannot access the API anymore.","responses":{"200":{"description":"Logout successful"},"500":{"description":"Access token not found"}},"tags":["Authentication"]}},"/auth/authenticated":{"get":{"summary":"Returns information if the user is authenticated else it returns a 401","description":"response.
","responses":{"200":{"description":"User authenticated"},"401":{"description":"Person not found"}},"tags":["Authentication"]}},"/auth/register":{"post":{"summary":"Allow a user to register himself to the service.","responses":{"201":{"description":"Registration successful"},"400":{"description":"Invalid password or email"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password_2","required":true,"type":"string","format":"password"},{"in":"formData","name":"first_name","required":true,"type":"string"},{"in":"formData","name":"last_name","required":true,"type":"string"}],"tags":["Authentication"]}},"/auth/change-password":{"post":{"summary":"Allow the user to change his password.","description":"Prior to modifying the password, it requires to give the current password (to make sure the user changing the password is not someone who stealed the session). The new password requires a confirmation to ensure that the user didn't make a mistake by typing his new password.","responses":{"200":{"description":"Password changed"},"400":{"description":"Invalid password or inactive user"}},"parameters":[{"in":"formData","name":"old_password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password_2","required":true,"type":"string","format":"password"}],"tags":["Authentication"]}},"/auth/reset-password":{"post":{"summary":"Resource to allow a user to change his password when he forgets it.","description":"It uses a classic scheme: a token is sent by email to the user. Then he can change his password.","responses":{"200":{"description":"Reset token sent"},"400":{"description":"Email not listed in database"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"}],"tags":["Authentication"]},"put":{"summary":"Resource to allow a user to change his password when he forgets it.","description":"It uses a classic scheme: a token is sent by email to the user. Then he can change his password.","responses":{"200":{"description":"Password reset"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"parameters":[{"in":"formData","name":"email","required":true,"type":"string","format":"email","x-example":"admin@example.com"},{"in":"formData","name":"token","required":true,"type":"string","format":"JWT token"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password2","required":true,"type":"string","format":"password"}],"tags":["Authentication"]}},"/auth/refresh-token":{"get":{"summary":"Tokens are considered as outdated every two weeks.","description":"This route allows to make their lifetime long before they get outdated.","responses":{"200":{"description":"Access Token"}},"tags":["Authentication"]}},"/auth/totp":{"post":{"summary":"Resource to allow a user to enable TOTP.","responses":{"200":{"description":"TOTP enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"put":{"summary":"Resource to allow a user to pre-enable TOTP.","responses":{"200":{"description":"TOTP enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"delete":{"summary":"Resource to allow a user to disable TOTP.","responses":{"200":{"description":"TOTP disabled"},"400":{"description":"TOTP not enabled"}},"tags":["Authentication"]}},"/auth/email-otp":{"post":{"summary":"Resource to allow a user to enable OTP by email.","responses":{"200":{"description":"OTP by email enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"get":{"summary":"Resource to send an OTP by email to user.","responses":{"200":{"description":"OTP by email sent"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"put":{"summary":"Resource to allow a user to pre-enable OTP by email.","responses":{"200":{"description":"OTP by email enabled"},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"delete":{"summary":"Resource to allow a user to disable OTP by email.","responses":{"200":{"description":"OTP by email disabled."},"400":{"description":"Invalid password. Wrong or expired token. Inactive user. Wrong 2FA."}},"tags":["Authentication"]}},"/auth/recovery-codes":{"put":{"summary":"Resource to allow a user to generate new recovery codes.","responses":{"200":{"description":"new recovery codes."},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]}},"/auth/fido":{"post":{"summary":"Resource to allow a user to register a FIDO device.","responses":{"200":{"description":"FIDO device registered."},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"get":{"summary":"Resource to get a challenge for a FIDO device.","responses":{"200":{"description":"Challenge for FIDO device."},"400":{"description":"Wrong parameter."}},"tags":["Authentication"]},"put":{"summary":"Resource to allow a user to pre-register a FIDO device.","responses":{"200":{"description":"FIDO device pre-registered."},"400":{"description":"Invalid password Wrong or expired token Inactive user"}},"tags":["Authentication"]},"delete":{"summary":"Resource to allow a user to unregister a FIDO device.","responses":{"200":{"description":"FIDO device unregistered."},"400":{"description":"Invalid password Wrong or expired token Inactive user Wrong 2FA"}},"tags":["Authentication"]}},"/auth/saml/sso":{"post":{"summary":"Resource to allow a user to login with SAML SSO.","responses":{"302":{"description":"Login successful, redirect to the home page."},"400":{"description":"Wrong parameter"}},"tags":["Authentication"]}},"/auth/saml/login":{"get":{"summary":"Resource to allow a user to login with SAML SSO.","responses":{"302":{"description":"Redirect to the SAML IDP."},"400":{"description":"Wrong parameter."}},"tags":["Authentication"]}},"/data/asset-types":{"get":{"summary":"Retrieve all asset types (entity types that are not shot, sequence or episode).","responses":{"200":{"description":"All asset types"}},"tags":["Assets"]}},"/data/asset-types/{asset_type_id}":{"get":{"summary":"Retrieve given asset type.","responses":{"200":{"description":"Given asset type"}},"parameters":[{"in":"path","name":"asset_type_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/assets":{"get":{"summary":"Retrieve all entities that are not shot or sequence.","description":"Adds project name and asset type name.
","responses":{"200":{"description":"All assets"}},"tags":["Assets"]}},"/data/assets/all":{"get":{"summary":"Retrieve all entities that are not shot or sequence.","description":"Adds project name and asset type name.
","responses":{"200":{"description":"All assets"}},"tags":["Assets"]}},"/data/assets/with-tasks":{"get":{"summary":"Retrieve all entities that are not shot or sequence.","description":"Adds project name and asset type name and all related tasks. If episode_id is given as parameter, it returns assets not linked to an episode and assets linked to given episode.","responses":{"200":{"description":"All assets with tasks"}},"tags":["Assets"]}},"/data/assets/{asset_id}":{"get":{"summary":"Retrieve given asset.","responses":{"200":{"description":"Given asset"}},"parameters":[{"in":"path","name":"asset_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]},"delete":{"summary":"Delete given asset.","responses":{"204":{"description":"Given asset deleted"}},"parameters":[{"in":"path","name":"asset_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/assets/{asset_id}/assets":{"get":{"summary":"Retrieve all assets for a given asset.","responses":{"200":{"description":"All assets for a given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given shot.","responses":{"200":{"description":"All tasks related to given shot"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given asset.","responses":{"200":{"description":"All task types related to given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/cast-in":{"get":{"summary":"Resource to retrieve the casting of a given asset.","responses":{"200":{"description":"Casting of given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/casting":{"get":{"summary":"Resource to retrieve the casting of a given asset.","responses":{"200":{"description":"Casting of given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]},"put":{"summary":"Resource to allow the modification of assets linked to a asset.","responses":{"200":{"description":"Modification of assets linked to given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/shot-asset-instances":{"get":{"summary":"Retrieve all shot asset instances linked to asset.","responses":{"200":{"description":"All shot asset instances linked to asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/scene-asset-instances":{"get":{"summary":"Retrieve all scene asset instances linked to asset.","responses":{"200":{"description":"All scene asset instances linked to asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/assets/{asset_id}/asset-asset-instances":{"post":{"summary":"Create an asset instance inside given asset.","responses":{"201":{"description":"Asset instance created inside given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]},"get":{"summary":"Retrieve all asset instances instantiated inside this asset.","responses":{"200":{"description":"All asset instances instantiated inside given asset"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/assets":{"get":{"summary":"Retrieve all assets for given project and entity type.","responses":{"200":{"description":"All assets for given project and entity type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/assets/new":{"post":{"summary":"Create new asset resource.","responses":{"201":{"description":"New asset resource created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Asset","description":"Name, description, data and ID of asset","schema":{"type":"object","required":["name","description","data","is_shared","source_id"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"data":{"type":"string"},"is_shared":{"type":"boolean"},"source_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Assets"]}},"/data/projects/{project_id}/asset-types":{"get":{"summary":"Retrieve all asset types for given project.","responses":{"200":{"description":"All asset types for given project"}},"parameters":[{"in":"path","name":"project_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/shots/{shot_id}/asset-types":{"get":{"summary":"Retrieve all asset shots for given shot.","responses":{"200":{"description":"All asset shots for given shot"}},"parameters":[{"in":"path","name":"shot_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/data/projects/{project_id}/assets":{"get":{"summary":"Retrieve all assets for given project.","responses":{"200":{"description":"All assets for given project"}},"parameters":[{"in":"path","name":"project_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true}],"tags":["Assets"]}},"/actions/assets/share":{"post":{"summary":"Share or unshare a list of assets.","responses":{"201":{"description":"All assets modified."}},"parameters":[{"in":"formData","name":"asset_ids","default":"None,","type":"array","items":{"type":"UUID"},"x-example":["a24a6ea4-ce75-4665-a070-57453082c25"]},{"in":"formData","name":"is_shared","default":true,"type":"boolean","x-example":true}],"tags":["Assets"],"consumes":["multipart/form-data"]}},"/actions/projects/{project_id}/assets/share":{"post":{"summary":"Share or unshare all assets (or a list of assets) for given project.","responses":{"201":{"description":"All assets modified."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"asset_ids","default":"None,","type":"array","items":{"type":"UUID"},"x-example":["a24a6ea4-ce75-4665-a070-57453082c25"]},{"in":"formData","name":"is_shared","default":true,"type":"boolean","x-example":true}],"tags":["Assets"],"consumes":["multipart/form-data"]}},"/actions/projects/{project_id}/asset-types/{asset_type_id}/assets/share":{"post":{"summary":"Share or unshare all assets for given project and asset type.","responses":{"201":{"description":"All assets modified."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"is_shared","default":true,"type":"boolean","x-example":true}],"tags":["Assets"],"consumes":["multipart/form-data"]}},"/data/projects/{project_id}/assets/shared-used":{"get":{"summary":"Retrieve all shared assets used in project.","responses":{"200":{"description":"All shared assets used in project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/episodes/{episode_id}/assets/shared-used":{"get":{"summary":"Retrieve all shared assets used in project episode.","responses":{"200":{"description":"All shared assets used in project episode"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Assets"]}},"/data/projects/{project_id}/entities/{entity_id}/casting":{"get":{"summary":"Resource to retrieve the casting of a given entity.","responses":{"200":{"description":"Casting of given entity"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]},"put":{"summary":"Resource to allow the modification of assets linked to an entity.","responses":{"200":{"description":"Modification of assets linked to an entity"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/casting":{"get":{"summary":"Resource to retrieve the casting of assets from given asset type.","responses":{"200":{"description":"Casting of assets from given asset type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/episodes/casting":{"get":{"summary":"Resource to retrieve the casting of episodes.","responses":{"200":{"description":"Casting of episodes"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/sequences/{sequence_id}/casting":{"get":{"summary":"Resource to retrieve the casting of shots from given sequence.","responses":{"200":{"description":"Casting of shots from given sequence"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/episodes/{episode_id}/sequences/all/casting":{"get":{"summary":"Resource to retrieve the casting of shots from given episode.","responses":{"200":{"description":"Casting for all shots from given episode."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/sequences/all/casting":{"get":{"summary":"Resource to retrieve the casting of shots from all sequences of given","description":"project.
","responses":{"200":{"description":"Casting for all shots from given project."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/entity-links":{"get":{"summary":"Retrieve all entity links related to given project.","description":"
Results can be paginated using page and limit query parameters. If you
prefer a more accurate pagination, you can use and
cursor_created_at to get the next page.
","responses":{"200":{"description":"All entity links related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"page","required":false,"type":"string","format":"Number","x-example":2},{"in":"limit","name":"page","required":false,"type":"string","format":"Number","x-example":100},{"in":"cursor_created_at","name":"page","required":false,"type":"string","format":"Datetime","x-example":"2020-01-01T00:00:00"}],"tags":["Breakdown"]}},"/data/projects/{project_id}/entity-links/{entity_link_id}":{"delete":{"summary":"Delete given entity link.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"Entity link deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"entity_link_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/scenes/{scene_id}/asset-instances":{"post":{"summary":"Create an asset instance on given scene.","responses":{"201":{"description":"Asset instances created on given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]},"get":{"summary":"Retrieve all asset instances linked to scene.","responses":{"200":{"description":"All asset instances linked to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/scenes/{scene_id}/camera-instances":{"get":{"summary":"Retrieve all camera instances linked to scene.","responses":{"201":{"description":"All camera instances linked to scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/shots/{shot_id}/asset-instances":{"post":{"summary":"Add an asset instance to given shot.","responses":{"201":{"description":"Asset instance added to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]},"get":{"summary":"Retrieve all asset instances linked to shot.","responses":{"200":{"description":"All assets linked to shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/shots/{shot_id}/asset-instances/{asset_instance_id}":{"delete":{"summary":"Remove an asset instance from given shot.","responses":{"204":{"description":"Asset instance removed from given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Breakdown"]}},"/data/entities/{entity_id}/chat":{"get":{"summary":"Get chat details.","responses":{"200":{"description":"Chat information"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Chat"]}},"/data/entities/{entity_id}/chat/messages":{"post":{"summary":"Create a new chat message.","responses":{"201":{"description":"Chat message created"},"400":{"description":"Not participant of the chat"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"message","description":"Message to send","type":"string","required":true,"x-example":"Hello, world!"},{"in":"formData","name":"files","description":"Files to attach","type":"file","required":false}],"tags":["Chat"]},"get":{"summary":"Get chat messages for an entity.","responses":{"200":{"description":"Chat messages"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Chat"]}},"/data/entities/{entity_id}/chat/messages/{chat_message_id}":{"get":{"summary":"Get chat message.","responses":{"200":{"description":"Chat message"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"chat_message_id","description":"ID of the chat message","type":"integer","required":true,"x-example":1}],"tags":["Chat"]},"delete":{"summary":"Delete chat message.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"entity_id","description":"ID of the entity related to the chat","type":"integer","required":true,"x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"chat_message_id","description":"ID of the chat message","type":"integer","required":true,"x-example":1}],"tags":["Chat"]}},"/data/tasks/{task_id}/comments/{comment_id}/ack":{"post":{"summary":"Acknowledge given comment.","description":"If it's already acknowledged, remove acknowledgement.","responses":{"200":{"description":"Comment acknowledged"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/tasks/{task_id}/comments/{comment_id}/reply":{"post":{"summary":"Reply to given comment.","description":"Add comment to its replies list.","responses":{"200":{"description":"Reply to given comment"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"text","type":"string","x-example":"comment"}],"tags":["Comments"]}},"/data/tasks/{task_id}/comments/{comment_id}/attachments/{attachment_id}":{"delete":{"summary":"Delete attachment linked to a comment matching given ID.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"attachment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/tasks/{task_id}/comments/{comment_id}/reply/{reply_id}":{"delete":{"summary":"Delete given comment reply.","responses":{"200":{"description":"Given comment reply deleted"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"reply_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/attachment-files/{attachment_file_id}/file/{file_name}":{"get":{"summary":"Download attachment file.","responses":{"200":{"description":"Attachment file downloaded","schema":{"type":"file"}},"404":{"description":"Download failed"}},"parameters":[{"in":"path","name":"attachment_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"file_name","required":true,"type":"string","x-example":"filename"}],"tags":["Comments"],"produces":["multipart/form-data","image/png","image/gif","image/jpeg"]}},"/actions/tasks/{task_id}/comments/{comment_id}/add-attachment":{"post":{"summary":"Add given files to the comment entry as attachments.","responses":{"201":{"description":"Given files added to the comment entry as attachments"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"files","type":"file","required":true}],"tags":["Comments"],"consumes":["image/png","image/gif","image/jpeg","multipart/form-data"]}},"/data/projects/{project_id}/attachment-files":{"get":{"summary":"Return all attachment files related to given project.","responses":{"200":{"description":"All attachment files related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/data/tasks/{task_id}/attachment-files":{"get":{"summary":"Return all attachment files related to given task.","responses":{"200":{"description":"All attachment files related to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Comments"]}},"/actions/tasks/{task_id}/comment":{"post":{"summary":"Create a new comment for given task.","description":"It requires a text, a task_status and a person as arguments. This way, comments keep history of status changes. When the comment is created, it updates the task status with given task status.","responses":{"201":{"description":"New comment created"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Comment","description":"person ID, name, comment, revision and change status of task","schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"created_at":{"type":"string","format":"date-time","example":"2022-07-12T13:00:00"},"checklist":{"type":"object","properties":{"item 1":{"type":"string"}}}}}}],"tags":["Comments"]}},"/actions/projects/{project_id}/tasks/comment-many":{"post":{"summary":"Create several comments at once.","description":"Each comment requires a text, a task id, a task_status and a person as arguments. This way, comments keep history of status changes. When the comment is created, it updates the task status with given task status.","responses":{"201":{"description":"Given files added to the comment entry as attachments"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Comment","description":"person ID, name, comment, revision and change status of task","schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"object_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25"},"created_at":{"type":"string","format":"date-time","example":"2022-07-12T13:00:00"},"checklist":{"type":"object","properties":{"item 1":{"type":"string"}}}}}}],"tags":["Comments"]}},"/data/persons":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/persons/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]}},"/data/projects":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/projects/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/project-status":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/project-status/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entity-types":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/entity-types/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entities":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/entities/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/task-types":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/task-types/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/task-status":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/task-status/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/tasks":{"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/tasks/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]}},"/data/departments":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/departments/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/organisations":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/organisations/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/file-status/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/file-status/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/softwares":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/softwares/{instance_id}":{"get":{"summary":"Retrieve a software corresponding at given ID and return it as a","description":"JSON object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"software_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/output-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/output-files/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON","description":"object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"output_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/output-types":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/output-types/{instance_id}":{"get":{"summary":"Retrieve an output type corresponding at given ID and return it as a","description":"JSON object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/preview-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/preview-files/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a preview file corresponding at given ID and retuns","description":"a 204 status code.
","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/working-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/working-files/{instance_id}":{"get":{"summary":"Retrieve a working file corresponding at given ID and return it as a","description":"JSON object.
","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/attachment-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/attachment-files/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/comments":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/comments/{instance_id}":{"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]}},"/data/time-spents/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/time-spents/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/day-offs/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/day-offs/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/custom-actions/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/custom-actions/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/status-automations/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/status-automations/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]}},"/data/asset-instances/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/asset-instances/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/playlists/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/playlists/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/events/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/events/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/notifications/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/notifications/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/search-filters/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/search-filters/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/search-filter-groups/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/search-filter-groups/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/schedule-items/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/schedule-items/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/news/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/news/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/milestones/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/milestones/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/metadata-descriptors/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/metadata-descriptors/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/subscriptions/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/subscriptions/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entity-links/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/entity-links/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/chats/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/chats/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/chat-messages/":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/chat-messages/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/preview-background-files":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/preview-background-files/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/studios":{"post":{"summary":"Create a model with data given in the request body.","description":"JSON format is expected. The model performs the validation automatically when instantiated.","responses":{"200":{"description":"Model created"},"400":{"description":"Error"}},"parameters":[{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"get":{"summary":"Retrieve all entries for given model.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All entries for given model"},"400":{"description":"Format error"},"403":{"description":"Permission denied"}},"tags":["Crud"]}},"/data/studios/{instance_id}":{"get":{"summary":"Retrieve a model corresponding at given ID and return it as a JSON object.","responses":{"200":{"description":"Model as a JSON object"},"400":{"description":"Statement error"},"404":{"description":"Value error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]},"put":{"summary":"Update a model with data given in the request body.","description":"JSON format is expected. Model performs the validation automatically when fields are modified.","responses":{"200":{"description":"Model updated"},"400":{"description":"Error"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Model","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}],"tags":["Crud"]},"delete":{"summary":"Delete a model corresponding at given ID and return it as a JSON object.","responses":{"204":{"description":"Model deleted"},"400":{"description":"Statement or integrity error"},"404":{"description":"Instance non-existant"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Crud"]}},"/data/entities/{entity_id}/news":{"get":{"summary":"Retrieve all news linked to a given entity.","responses":{"200":{"description":"All news linked to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entities"]}},"/data/entities/{entity_id}/preview-files":{"get":{"summary":"Retrieve all preview files linked to a given entity.","responses":{"200":{"description":"All preview files linked to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entities"]}},"/data/entities/{entity_id}/time-spents":{"get":{"summary":"Retrieve all time spents linked to a given entity.","responses":{"200":{"description":"All time spents linked to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entities"]}},"/data/entities/{entity_id}/entities-linked/with-tasks":{"get":{"summary":"Resource to retrieve the entities linked on a given entity.","responses":{"200":{"description":"Entities linked on given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Entity"]}},"/export/csv/projects/{project_id}/assets.csv":{"get":{"summary":"Export assets linked to a given project as csv.","responses":{"200":{"description":"Assets exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/projects/{project_id}/shots.csv":{"get":{"summary":"Export shots linked to a given project as csv.","responses":{"200":{"description":"Shots exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/projects/{project_id}/casting.csv":{"get":{"summary":"Export casting linked to a given project as csv.","responses":{"200":{"description":"Casting exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/projects/{project_id}/edits.csv":{"get":{"summary":"Export edits linked to a given project as csv.","responses":{"200":{"description":"Edits exported as csv"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/playlists/{playlist_id}":{"get":{"summary":"Export a given playlist as csv.","responses":{"200":{"description":"Playlist exported as csv"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Export"]}},"/export/csv/persons.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/projects.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/tasks.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/time-spents.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/export/csv/task-types.csv":{"get":{"summary":"Export as csv.","responses":{"200":{"description":"Exported as csv"}},"tags":["Export"]}},"/data/events/last":{"get":{"summary":"Retrieve last events.","responses":{"200":{"description":"All login logs"}},"parameters":[{"in":"query","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"only_files","type":"boolean","default":false},{"in":"query","name":"page_size","type":"integer","default":100,"x-example":100},{"in":"query","name":"project_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Events"]}},"/data/events/login-logs/last":{"get":{"summary":"Retrieve all login logs.","responses":{"200":{"description":"All login logs"}},"parameters":[{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12T00:00:00"},{"in":"query","name":"page_size","type":"integer","x-example":100}],"tags":["Events"]}},"/data/files/{file_id}":{"get":{"summary":"Get information about a file that could be a working file as much as an","description":"output file.
","responses":{"200":{"description":"Information about file"}},"parameters":[{"in":"path","name":"file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/tasks/{task_id}/working-files":{"get":{"summary":"Return last working files revision for each file name for given task.","responses":{"200":{"description":"Last working files revision for each file name for given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/tasks/{task_id}/working-files/new":{"post":{"summary":"Create new working file.","description":"A working file is a file used to produce output files. It is the file the CG artist is working on. It is versioned, tied to a task and a software and requires a comment each time it is created. A path is generated for each file created. The path format is defined in the file tree template file.","responses":{"201":{"description":"New working file created","schema":{"type":"file"}},"400":{"description":"Given working file already exists"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, mode, description, comment, person ID, software ID, revision and separator.","schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"mode":{"type":"string","default":"working"},"description":{"type":"string"},"comment":{"type":"string"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"software_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"revision":{"type":"integer"},"sep":{"type":"string","default":"/"}}}}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/data/tasks/{task_id}/working-files/last-revisions":{"get":{"summary":"Return last working files revision for each file name for given task.","responses":{"200":{"description":"Last working files revision for each file name for given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/tasks/{task_id}/working-file-path":{"post":{"summary":"Generate a working file path from file tree template.","description":"Generate file path based on several parameters: task, software, mode, revision and separator. Revision can be computed automatically as next revision if not given.","responses":{"200":{"description":"Working file path generated"},"400":{"description":"Malformed file tree"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, software, mode, revision and separator.","schema":{"type":"object","properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"working"},"software_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"revision":{"type":"integer"},"separator":{"type":"string","default":"/"}}}}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/new":{"post":{"summary":"Create new output file linked to assets through an instance of this asset for a given shot.","description":"Some output files are linked to assets through an instance of this asset for a given shot. Each time a CG artist is satisfied by what he did on a working file, he can create an output file that will be linked to a target instance. It keeps track of the working file at the origin of the output file. An output type is required for better categorization (textures, caches, ...). A task type can be set too to give the department related to the output file.","responses":{"200":{"description":"New output file created","schema":{"type":"file"}},"400":{"description":"Given output file already exists Given person not found Given output type not found"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, mode, output type ID, task type ID, person ID, working file ID, file status ID, comment, extension, representation, revision, number of elements and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"working_file_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"file_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"is_sequence":{"type":"boolean","default":false},"comment":{"type":"string"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"nb_elements":{"type":"integer","default":1},"sep":{"type":"string","default":"/"}}}}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/next-revision":{"post":{"summary":"Get next revision for given asset instance, output type, task type and name.","responses":{"200":{"description":"Next revision for given asset instance, output type, task type and name"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, output type ID, task type ID.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/last-revisions":{"get":{"summary":"Get last revisions of output files for given instance grouped by output type and file name.","responses":{"200":{"description":"Last revisions of output files for given instance grouped by output type and file name"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-types":{"get":{"summary":"Return all types of output generated for given instance.","responses":{"200":{"description":"All types of output generated for given instance and temporal_entity"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-types/{output_type_id}/output-files":{"get":{"summary":"Get all output files for given asset instance and given output type.","responses":{"200":{"description":"All output files for given asset instance and given output type"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-file-path":{"post":{"summary":"Generate an output file path from file tree template","description":"Generate file path based on several parameters: asset instance, output type, task type, revision, mode, name and separator. Revision can be computed automatically as next revision in case no revision is given in parameter.","responses":{"200":{"description":"Output file path generated"},"400":{"description":"Malformed file tree"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Asset instance, output type, task type, revision, mode, name and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"separator":{"type":"string","default":"/"}}}}],"tags":["Files"]}},"/data/entities/{entity_id}/working-files":{"get":{"summary":"Get all working files for a given entity and possibly a task and a name.","responses":{"200":{"description":"All working files for given entity and possibly a task and a name"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-files/new":{"post":{"summary":"Create new output file linked to a given entity.","description":"Output files are linked to entities. Each time a CG artist is satisfied by what he did on a working file, he can create an output file that will be linked to a target entity (an asset, a shot, a sequence, ...). It keeps track of the working file at the origin of the output file. An output type is required for better categorization (textures, caches, ...). A task type can be set too to give the department related to the output file. Revision is automatically set.","responses":{"200":{"description":"New output file created","schema":{"type":"file"}},"400":{"description":"Given output file already exists Given person not found Given output type not found"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, mode, output type ID, task type ID, person ID, working file ID, file status ID, comment, extension, representation, revision, number of elements and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"working_file_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"file_status_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"nb_elements":{"type":"integer","default":1},"sep":{"type":"string","default":"/"}}}}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/data/entities/{entity_id}/output-files/next-revision":{"post":{"summary":"Get next revision for given entity, output type, task type and name.","responses":{"200":{"description":"Next revision for given entity, output type, task type and name"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Name, output type ID, task type ID.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Files"]}},"/data/entities/{entity_id}/output-files/last-revisions":{"get":{"summary":"Get last revisions of output files for given entity grouped by output type and file name.","responses":{"200":{"description":"Last revisions of output files for given entity grouped by output type and file name"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-types":{"get":{"summary":"Return all types of output generated for given entity.","responses":{"200":{"description":"All types of output generated for given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-types/{output_type_id}/output-files":{"get":{"summary":"Get all output files for given entity and given output type.","responses":{"200":{"description":"All output files for given entity and given output type"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-files":{"get":{"summary":"Get all output files for given entity.","responses":{"200":{"description":"All output files for given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/projects/{project_id}/output-files":{"get":{"summary":"Get all output files for given poject.","responses":{"200":{"description":"All output files for given project."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/asset-instances/{asset_instance_id}/output-files":{"get":{"summary":"Get all output files for given asset instance and given output type.","responses":{"200":{"description":"All output files for given asset instance and given temporal entity (shot, sequence, etc.)"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"temporal_entity_id","required":true,"type":"string","format":"UUID","x-example":"cache"},{"in":"query","name":"output_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"file_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"representation","required":true,"type":"string","format":"UUID","x-example":"cache"}],"tags":["Files"]}},"/data/entities/{entity_id}/output-file-path":{"post":{"summary":"Generate an output file path from file tree template","description":"Generate file path based on several parameters: entity, output type, task type, revision, mode, name and separator. Revision can be computed automatically as next revision if not given.","responses":{"200":{"description":"Output file path generated"},"400":{"description":"Malformed file tree"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"File","description":"Entity, output type, task type, revision, mode, name and separator.","schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","default":"main"},"mode":{"type":"string","default":"output"},"output_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"task_type_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"extension":{"type":"string"},"representation":{"type":"string"},"revision":{"type":"integer"},"separator":{"type":"string","default":"/"}}}}],"tags":["Files"]}},"/data/working-files/{working_file_id}/file":{"post":{"summary":"Store a working file.","responses":{"201":{"description":"Working file stored"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Files"]},"get":{"summary":"Download a working file.","responses":{"200":{"description":"Working file downloaded","schema":{"type":"file"}}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"],"produces":["image/png","image/jpg","image/gif","multipart/form-data"]}},"/actions/projects/{project_id}/set-file-tree":{"post":{"summary":"Define a template file to use for given project.","description":"Template files are located on the server side. Each template has a name which means that you just have to give a name to \"select\" the template to link with the project.","responses":{"200":{"description":"Template file defined"},"400":{"description":"Selected tree not available"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Tree name","schema":{"type":"object","required":["tree_name"],"properties":{"tree_name":{"type":"string"}}}}],"tags":["Files"]}},"/actions/working-files/{working_file_id}/comment":{"put":{"summary":"Update comment on given working file.","responses":{"200":{"description":"Comment updated on given working file"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Comment","schema":{"type":"object","required":["comment"],"properties":{"comment":{"type":"string"}}}}],"tags":["Files"]}},"/actions/working-files/{working_file_id}/modified":{"put":{"summary":"Update working file modification date with current date.","responses":{"200":{"description":"Working file modification date updated"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Files"]}},"/import/shotgun/persons":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/projects":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/episodes":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/sequences":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/shots":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/scenes":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/assets":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/steps":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/status":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/tasks":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/versions":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/notes":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/errors":{"post":{"summary":"Serialize shotgun error resource.","responses":{"200":{"description":"Resource serialized"}},"tags":["Import"]},"get":{"summary":"Import shotgun error resource.","responses":{"200":{"description":"Resource imported"}},"tags":["Import"]}},"/import/shotgun/projectconnections":{"post":{"summary":"Import shotgun resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"sg_entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/shotgun/errors/{error_id}":{"delete":{"summary":"Delete error.","responses":{"204":{"description":"Error deleted"},"404":{"description":"Error non-existant or Statement error"}},"parameters":[{"in":"path","name":"error_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"]}},"/import/shotgun/remove/project":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/person":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/shot":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/scene":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/episode":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/sequence":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/asset":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/projectconnection":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/step":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/status":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/task":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/note":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/shotgun/remove/version":{"post":{"summary":"Import remove instance.","responses":{"204":{"description":"Instance removed"}},"tags":["Import"]}},"/import/csv/persons":{"post":{"summary":"Import persons via a .csv file.","responses":{"201":{"description":"The lists of imported persons."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/assets":{"post":{"summary":"Import project assets via a .csv file.","responses":{"201":{"description":"The lists of imported assets."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/shots":{"post":{"summary":"Import project shots via a .csv file.","responses":{"201":{"description":"The lists of imported assets."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/edits":{"post":{"summary":"Import project edits.","responses":{"201":{"description":"Edits imported"},"400":{"description":"Format error"}},"parameters":[{"in":"formData","name":"file","type":"file","required":true},{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/casting":{"post":{"summary":"Import project casting links via a .csv file.","responses":{"201":{"description":"The lists of imported casting links."},"400":{"description":"The .csv file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/task-types/{task_type_id}/estimations":{"post":{"summary":"Import the estimations of task-types for given project.","responses":{"201":{"description":"Estimations imported"},"400":{"description":"Format error"}},"parameters":[{"in":"formData","name":"file","type":"file","required":true},{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/csv/projects/{project_id}/episodes/{episode_id}/task-types/{task_type_id}/estimations":{"post":{"summary":"Import the estimations of task-types for given episode of given project.","responses":{"201":{"description":"Estimations imported"},"400":{"description":"Format error"}},"parameters":[{"in":"formData","name":"file","type":"file","required":true},{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/otio/projects/{project_id}":{"post":{"summary":"Import an OTIO file to enter frame_in / frame_out / nb_frames (it can","description":"be every adapter supported by OpenTimelineIO, for example: EDL, OTIO...
).
","responses":{"201":{"description":"."},"400":{"description":"The .otio file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/otio/projects/{project_id}/episodes/{episode_id}":{"post":{"summary":"Import an OTIO file to enter frame_in / frame_out / nb_frames (it can","description":"be every adapter supported by OpenTimelineIO, for example: edl, otio...
).
","responses":{"201":{"description":"."},"400":{"description":"The .otio file is not properly formatted."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Import"],"consumes":["multipart/form-data"]}},"/import/kitsu/comments":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/entities":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/entity-links":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/projects":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/import/kitsu/tasks":{"post":{"summary":"Import Kitsu resource.","responses":{"200":{"description":"Resource imported"}},"parameters":[{"in":"body","name":"entries","required":true,"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}}}}],"tags":["Import"]}},"/":{"get":{"summary":"Get API name and version.","responses":{"200":{"description":"API name and version"}},"tags":["Index"]}},"/status":{"get":{"summary":"Retrieve API name, version and status.","responses":{"200":{"description":"API name, version and status"}},"tags":["Index"]}},"/status/influx":{"get":{"summary":"Retrieve status of database and time.","responses":{"200":{"description":"Status of database, key value, event stream, job queue and time"}},"tags":["Index"]}},"/status/resources":{"get":{"summary":"Retrieve date and CPU, memory and jobs stats.","responses":{"200":{"description":"Date and CPU, memory and jobs stats"}},"tags":["Index"]}},"/status.txt":{"get":{"summary":"Retrieve API name, version and status as txt.","responses":{"200":{"description":"API name, version and status as txt"}},"tags":["Index"]}},"/status/test-event":{"get":{"summary":"Generate a main:test event.","responses":{"200":{"description":"Success flage"}},"tags":["Index"]}},"/stats":{"get":{"summary":"Retrieve main stats.","responses":{"403":{"description":"Permission denied"},"200":{"description":"Main stats"}},"tags":["Index"]}},"/config":{"get":{"summary":"Get crisp token.","responses":{"200":{"description":"Crisp token"}},"tags":["Index"]}},"/data/projects/news":{"get":{"summary":"Retrieve all news related to a given project","responses":{"200":{"description":"All news from user open projects."}},"parameters":[{"in":"query","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"page","type":"integer","x-example":1},{"in":"query","name":"page_size","type":"integer","x-example":50},{"in":"query","name":"person_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_status_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"episode_id","type":"boolean","default":false},{"in":"query","name":"only_preview","type":"boolean","default":false}],"tags":["News"]}},"/data/projects/{project_id}/news":{"get":{"summary":"Retrieve all news related to a given project","responses":{"200":{"description":"All news related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"before","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"page","type":"integer","x-example":1},{"in":"query","name":"page_size","type":"integer","x-example":50},{"in":"query","name":"person_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_status_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"episode_id","type":"boolean","default":false},{"in":"query","name":"only_preview","type":"boolean","default":false}],"tags":["News"]}},"/data/projects/{project_id}/news/{news_id}":{"get":{"summary":"Retrieve a single given news related to a given project","responses":{"200":{"description":"Single given news related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"news_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["News"]}},"/data/persons/{person_id}/desktop-login-logs":{"post":{"summary":"Create desktop login logs.","description":"Add a new log entry for desktop logins.","responses":{"201":{"description":"Desktop login log entry created."}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Persons"]},"get":{"summary":"Retrieve desktop login logs.","description":"Desktop login logs can only be created by current user.","responses":{"200":{"description":"Desktop login logs"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/data/persons/presence-logs/{month_date}":{"get":{"summary":"Return a csv file containing the presence logs based on a daily basis.","responses":{"200":{"description":"CSV file containing the presence logs based on a daily basis"}},"parameters":[{"in":"path","name":"month_date","required":true,"type":"string","format":"date","x-example":"2022-07"}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/{date}":{"get":{"summary":"Get time spents for given person and date.","responses":{"200":{"description":"Time spents for given person and date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/{date}":{"get":{"summary":"Get day off object for given person and date.","responses":{"200":{"description":"Day off object for given person and date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/year/{year}":{"get":{"summary":"Get aggregated time spents for given person and year.","responses":{"200":{"description":"Aggregated time spents for given person and year"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/month/{year}/{month}":{"get":{"summary":"Get aggregated time spents for given person and month.","responses":{"200":{"description":"Aggregated time spents for given person and month"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/week/{year}/{week}":{"get":{"summary":"Get aggregated time spents for given person and week.","responses":{"200":{"description":"Aggregated time spents for given person and week"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"week","required":true,"type":"integer","x-example":35,"minimum":1,"maximum":52}],"tags":["Persons"]}},"/data/persons/{person_id}/time-spents/day/{year}/{month}/{day}":{"get":{"summary":"Get aggregated time spents for given person and day.","responses":{"200":{"description":"Aggregated time spents for given person and day"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12},{"in":"path","name":"day","required":true,"type":"integer","x-example":12,"minimum":1,"maximum":31}],"tags":["Persons"]}},"/data/persons/{person_id}/quota-shots/month/{year}/{month}":{"get":{"summary":"Get ended shots used for quota calculation of this month.","responses":{"200":{"description":"Ended shots used for quota calculation of this month"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"}],"tags":["Persons"]}},"/data/persons/{person_id}/quota-shots/week/{year}/{week}":{"get":{"summary":"Get ended shots used for quota calculation of this week.","responses":{"200":{"description":"Ended shots used for quota calculation of this week"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"week","required":true,"type":"integer","x-example":35,"minimum":1,"maximum":52},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"}],"tags":["Persons"]}},"/data/persons/{person_id}/quota-shots/day/{year}/{month}/{day}":{"get":{"summary":"Get ended shots used for quota calculation of this day.","responses":{"200":{"description":"Ended shots used for quota calculation of this day"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12},{"in":"path","name":"day","required":true,"type":"integer","x-example":12,"minimum":1,"maximum":31},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"}],"tags":["Persons"]}},"/data/persons/time-spents/year-table/":{"get":{"summary":"Return a table giving time spent by user and by month for given year.","responses":{"200":{"description":"Table giving time spent by user and by month for given year"}},"tags":["Persons"]}},"/data/persons/time-spents/month-table/{year}":{"get":{"summary":"Return a table giving time spent by user and by month for given year.","responses":{"200":{"description":"Table giving time spent by user and by month for given year"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/time-spents/week-table/{year}":{"get":{"summary":"Return a table giving time spent by user and by week for given year.","responses":{"200":{"description":"Table giving time spent by user and by week for given year"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/time-spents/day-table/{year}/{month}":{"get":{"summary":"Return a table giving time spent by user and by day for given year and month.","responses":{"200":{"description":"Table giving time spent by user and by day for given year and month"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/day-offs/{year}/{month}":{"get":{"summary":"Return all day off recorded for given month.","responses":{"200":{"description":"All day off recorded for given month"}},"parameters":[{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/week/{year}/{week}":{"get":{"summary":"Return all day off recorded for given week and person.","responses":{"200":{"description":"All day off recorded for given week and person"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"week","required":true,"type":"integer","x-example":35,"minimum":1,"maximum":52}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/month/{year}/{month}":{"get":{"summary":"Return all day off recorded for given month and person.","responses":{"200":{"description":"All day off recorded for given month and person"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"},{"in":"path","name":"month","required":true,"type":"integer","x-example":7,"minimum":1,"maximum":12}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs/year/{year}":{"get":{"summary":"Return all day off recorded for given year and person.","responses":{"200":{"description":"All day off recorded for given year and person"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"year","required":true,"type":"integer","x-example":"2022"}],"tags":["Persons"]}},"/data/persons/{person_id}/day-offs":{"get":{"summary":"Return all day offs recorded for given and person.","responses":{"200":{"description":"All day off recorded for given person."}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/invite":{"get":{"summary":"Sends an email to given person to invite him/her to connect to Kitsu.","responses":{"200":{"description":"Email sent"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/departments/add":{"post":{"summary":"Add a user to given department.","responses":{"201":{"description":"User added to given department"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/departments/{department_id}":{"delete":{"summary":"Remove a user from given department.","responses":{"204":{"description":"User removed from given department"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"department_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/change-password":{"post":{"summary":"Allow admin to change password for given user.","description":"Prior to modifying the password, it requires to be admin. An admin can't change other admins password. The new password requires a confirmation to ensure that the admin didn't make a mistake by typing the new password.","responses":{"200":{"description":"Password changed"},"400":{"description":"Invalid password or inactive user"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"password","required":true,"type":"string","format":"password"},{"in":"formData","name":"password_2","required":true,"type":"string","format":"password"}],"tags":["Persons"]}},"/actions/persons/{person_id}/disable-two-factor-authentication":{"delete":{"summary":"Allow admin to disable two factor authentication for given user.","description":"Prior to disable two factor authentication, it requires to be admin. An admin can't disable two factor authentication for other admins.","responses":{"200":{"description":"Two factor authentication disabled"},"400":{"description":"Inactive user"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Persons"]}},"/actions/persons/{person_id}/clear-avatar":{"delete":{"summary":"Set `has_avatar` flag to False for current user and remove its avatar","description":"file.
","responses":{"204":{"description":"Avatar file deleted"}},"tags":["User"]}},"/data/projects/{project_id}/playlists":{"get":{"summary":"Retrieve all playlists related to given project.","description":"Result is paginated and can be sorted.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/playlists/all":{"get":{"summary":"Retrieve all playlists related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/episodes/{episode_id}/playlists":{"get":{"summary":"Retrieve all playlists related to given episode.","description":"The full list is returned because the number of playlists in an episode is not that big.","responses":{"200":{"description":"All playlists related to given episode"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/playlists/{playlist_id}":{"get":{"summary":"Retrieve all playlists related to given project.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/playlists/entities/{entity_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given entity.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given entity"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/jobs/{build_job_id}":{"get":{"summary":"Retrieve build job related to given playlist.","responses":{"200":{"description":"Build job related to given playlist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"build_job_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]},"delete":{"summary":"Remove given build job related to given playlist.","responses":{"204":{"description":"Given build job removed"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"build_job_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/{project_id}/build-jobs":{"get":{"summary":"Retrieve all build jobs related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All build jobs related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/build/mp4":{"get":{"summary":"Build given playlist as mp4 movie.","responses":{"200":{"description":"Given playlist built as mp4 movie"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"],"produces":["multipart/form-data"]}},"/data/playlists/{playlist_id}/jobs/{build_job_id}/build/mp4":{"get":{"summary":"Download given playlist build as .mp4.","responses":{"200":{"description":"Given playlist build downloaded as .mp4"},"400":{"description":"Build not finished, need to retry later"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"build_job_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"],"produces":["multipart/form-data"]}},"/data/playlists/{playlist_id}/download/zip":{"get":{"summary":"Download given playlist as zip.","responses":{"200":{"description":"Given playlist downloaded as zip","schema":{"type":"file"}}},"parameters":[{"in":"path","name":"playlist_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"],"produces":["multipart/form-data"]}},"/data/projects/{project_id}/playlists/temp":{"post":{"summary":"Retrieve all playlists related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All playlists related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Playlists"]}},"/data/projects/open":{"get":{"summary":"Return the list of projects currently running.","description":"Most of the time, past projects are not needed.","responses":{"200":{"description":"All running projects"}},"tags":["Projects"]}},"/data/projects/all":{"get":{"summary":"Return all projects listed in database.","description":"Ensure that user has at least the manager level before that.","responses":{"200":{"description":"All projects listed in database"}},"tags":["Projects"]}},"/data/projects/{project_id}/team":{"post":{"summary":"Add a person to a production team.","responses":{"201":{"description":"Person added to the production team"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Return the people listed in a production team.","responses":{"200":{"description":"People listed in a production team"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/task-types":{"get":{"summary":"Retrieve task types linked to the production","responses":{"200":{"description":"Task types linked to the production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/team/{person_id}":{"delete":{"summary":"Remove people listed in a production team.","responses":{"204":{"description":"Person removed from production team"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/asset-types":{"post":{"summary":"Add an asset type linked to a production.","responses":{"201":{"description":"Asset type added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/asset-types/{asset_type_id}":{"delete":{"summary":"Remove an asset type from a production.","responses":{"204":{"description":"Asset type removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-types":{"post":{"summary":"Add a task type linked to a production.","responses":{"201":{"description":"Asset type added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"priority","required":false,"type":"string","default":"None"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-types/{task_type_id}":{"delete":{"summary":"Remove a task type from a production.","responses":{"204":{"description":"Task type removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-status":{"post":{"summary":"Add a task type linked to a production.","responses":{"201":{"description":"Task type added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"task_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Return task statuses linked to a production","responses":{"200":{"description":"Task statuses linked to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-status/{task_status_id}":{"delete":{"summary":"Remove a task status from a production.","responses":{"204":{"description":"Task status removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_status_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/status-automations":{"post":{"summary":"Add a status automation linked to a production.","responses":{"201":{"description":"Status automation added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"status_automation_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Get a status automation linked to a production.","responses":{"200":{"description":"Status automation linked to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/status-automations/{status_automation_id}":{"delete":{"summary":"Remove a status automation from a production.","responses":{"204":{"description":"Status automation removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"status_automation_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/preview-background-files/{preview_background_file_id}":{"delete":{"summary":"Remove a preview background file from a production.","responses":{"204":{"description":"Preview background file removed from production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"preview_background_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/preview-background-files":{"post":{"summary":"Add a preview background file linked to a production.","responses":{"201":{"description":"Preview background file added to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"preview_background_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Return preview background files linked to a production","responses":{"200":{"description":"Preview background files linked to production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/metadata-descriptors":{"post":{"summary":"Create a new metadata descriptor","description":"It serves to describe extra fields listed in the data attribute of entities.","responses":{"201":{"description":"Create a new metadata descriptor"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"get":{"summary":"Get all metadata descriptors","description":"It serves to describe extra fields listed in the data attribute of entities.","responses":{"200":{"description":"All metadata descriptors"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/metadata-descriptors/{descriptor_id}":{"get":{"summary":"Get a metadata descriptor.","description":"Descriptors serve to describe extra fields listed in the data attribute of entities.","responses":{"200":{"description":"Metadata descriptor"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"descriptor_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]},"put":{"summary":"Update a metadata descriptor.","description":"Descriptors serve to describe extra fields listed in the data attribute of entities.","responses":{"200":{"description":"Metadata descriptor updated"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"descriptor_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":false,"type":"string"},{"in":"formData","name":"for_client","required":false,"type":"boolean","default":false},{"in":"formData","name":"choices","required":false,"type":"array"},{"in":"formData","name":"departments","type":"array","required":false}],"tags":["Projects"]},"delete":{"summary":"Delete a metadata descriptor.","description":"Descriptors serve to describe extra fields listed in the data attribute of entities.","responses":{"204":{"description":"Metadata descriptor deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"descriptor_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/milestones":{"get":{"summary":"Retrieve milestones for given production","responses":{"200":{"description":"All milestones of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items":{"get":{"summary":"Retrieve schedule items for given production","responses":{"200":{"description":"All schedule items of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/task-types":{"get":{"summary":"Retrieve task type schedule items for given production","responses":{"200":{"description":"All task types schedule items of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/asset-types":{"get":{"summary":"Retrieve asset types schedule items for given task type","responses":{"200":{"description":"All asset types schedule items for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/episodes":{"get":{"summary":"Retrieve episodes schedule items for given task type","responses":{"200":{"description":"All episodes schedule items for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/sequences":{"get":{"summary":"Retrieve sequences schedule items for given task type","responses":{"200":{"description":"All sequences schedule items for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/projects/{project_id}/time-spents":{"get":{"summary":"Retrieve time spents for given production","responses":{"200":{"description":"All time spents of given production"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Projects"]}},"/data/shots":{"get":{"summary":"Retrieve all shot entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All shot entries"}},"parameters":[{"in":"query","name":"sequence_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"parent_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/all":{"get":{"summary":"Retrieve all shot entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All shot entries"}},"parameters":[{"in":"query","name":"sequence_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"parent_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/with-tasks":{"get":{"summary":"Retrieve all shots, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All shots"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}":{"get":{"summary":"Retrieve given shot.","responses":{"200":{"description":"Given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"put":{"summary":"Update given shot.","responses":{"200":{"description":"Update given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"data","required":true,"type":"object"}],"tags":["Shots"]},"delete":{"summary":"Delete given shot.","responses":{"204":{"description":"Given shot deleted"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/assets":{"get":{"summary":"Retrieve all assets for a given shot.","responses":{"200":{"description":"All assets for given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given shot.","responses":{"200":{"description":"All task types related to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given shot.","responses":{"200":{"description":"All tasks related to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given shot.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given episode"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/shots/{shot_id}/versions":{"get":{"summary":"Retrieve data versions of given shot.","responses":{"204":{"description":"Data versions of given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/all":{"get":{"summary":"Retrieve all scene entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All scene entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/with-tasks":{"get":{"summary":"Retrieve all scenes, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All scenes"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}":{"get":{"summary":"Retrieve given scene.","responses":{"200":{"description":"Given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given scene.","responses":{"204":{"description":"Given scene deleted"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given scene.","responses":{"200":{"description":"All tasks related to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given scene.","responses":{"200":{"description":"All task types related to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/shots":{"post":{"summary":"Mark given scene as source of given shot.","responses":{"200":{"description":"Given scene marked as source of given shot"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"shot_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"get":{"summary":"Retrieve all shots that come from given scene.","responses":{"200":{"description":"All shots that come from given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/scenes/{scene_id}/shots/{shot_id}":{"delete":{"summary":"Delete given shot from given scene.","responses":{"204":{"description":"Given shot deleted from given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes":{"get":{"summary":"Retrieve all episode entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All episode entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/with-tasks":{"get":{"summary":"Retrieve all episodes, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All episodes"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}":{"get":{"summary":"Retrieve given episode.","responses":{"200":{"description":"Given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given episode.","responses":{"204":{"description":"Given episode deleted"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/shots":{"get":{"summary":"Retrieve all shots related to a given episode.","responses":{"200":{"description":"All shots related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/sequences":{"get":{"summary":"Retrieve all sequence entries for a given episode.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All sequence entries for given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given episode.","responses":{"200":{"description":"All tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given episode.","responses":{"200":{"description":"All task types related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/shot-tasks":{"get":{"summary":"Retrieve all shots tasks related to a given episode.","responses":{"200":{"description":"All shots tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/episodes/{episode_id}/asset-tasks":{"get":{"summary":"Retrieve all assets tasks related to a given episode.","responses":{"200":{"description":"All assets tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences":{"get":{"summary":"Retrieve all sequence entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All sequence entries"}},"parameters":[{"in":"query","name":"episode_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/with-tasks":{"get":{"summary":"Retrieve all sequences, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All sequences"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}":{"get":{"summary":"Retrieve given sequence.","responses":{"200":{"description":"Given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"delete":{"summary":"Delete given sequence.","responses":{"204":{"description":"Given sequence deleted"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/shots":{"get":{"summary":"Retrieve all shot entries for a given sequence.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All shot entries for given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/scenes":{"get":{"summary":"Retrieve all scenes related to a given sequence.","responses":{"200":{"description":"All scenes related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given shot.","responses":{"200":{"description":"All tasks related to given shot"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given shot.","responses":{"200":{"description":"All task types related to given shot"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/sequences/{sequence_id}/shot-tasks":{"get":{"summary":"Retrieve all tasks related to a given sequence.","responses":{"200":{"description":"All task types related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/shots":{"post":{"summary":"Create a shot for given project.","responses":{"201":{"description":"Shot created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of shot"},{"in":"formData","name":"description","type":"string","x-example":"Description of shot"},{"in":"formData","name":"sequence_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"nb_frames","type":"integer"}],"tags":["Shots"]},"get":{"summary":"Retrieve all shots related to a given project.","responses":{"200":{"description":"All shots related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/scenes":{"post":{"summary":"Create a scene for given project.","responses":{"201":{"description":"Scene created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of scene"},{"in":"formData","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"get":{"summary":"Retrieve all scenes related to a given project.","responses":{"200":{"description":"All scenes related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/sequences":{"post":{"summary":"Create a sequence for given project.","responses":{"201":{"description":"Sequence created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of sequence"},{"in":"formData","name":"episode_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]},"get":{"summary":"Retrieve all sequences related to a given project.","responses":{"200":{"description":"All sequences related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/episodes":{"post":{"summary":"Create an episode for given project.","responses":{"201":{"description":"Episode created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of the episode"},{"in":"formData","name":"description","required":true,"type":"string","x-example":"Description of the episode"}],"tags":["Shots"]},"get":{"summary":"Retrieve all episodes related to a given project.","responses":{"200":{"description":"All episodes related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/episodes/stats":{"get":{"summary":"Retrieve number of tasks by status, task_types and episodes for given project.","responses":{"200":{"description":"Number of tasks by status, task types and episodes for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/episodes/retake-stats":{"get":{"summary":"Retrieve number of tasks by status, task_types and episodes for given project.","responses":{"200":{"description":"Number of tasks by status, task types and episodes for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/data/projects/{project_id}/quotas/{task_type_id}":{"get":{"summary":"Retrieve quotas statistics for shots.","responses":{"200":{"description":"Quotas statistics for shots"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"count_mode","required":true,"type":"string","enum":["weighted","weigtheddone","feedback","done"],"x-example":"weighted"},{"in":"query","name":"studio_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Shots"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/set-shot-nb-frames":{"post":{"summary":"Set frames for given shots.","responses":{"200":{"description":"Frames set for given shots"}},"parameters":[{"in":"formData","name":"shots","required":true,"type":"array","items":{"type":"object","properties":{"shot_id":{"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},"nb_frames":{"type":"integer","x-example":24}}}}],"tags":["Shots"]}},"/data/tasks/open-tasks":{"get":{"summary":"Return all tasks related to open projects.","responses":{"200":{"schema":{"type":"object","properties":{"data":{"type":"array","description":"List of tasks"},"stats":{"type":"object","properties":{"total":{"type":"integer","description":"Total number of tasks"},"total_duration":{"type":"integer","description":"Total duration of tasks in minutes"},"total_estimation":{"type":"integer","description":"Total estimation of tasks in minutes"},"status":{"type":"object","description":"Number of tasks per status"}}},"limit":{"type":"integer","description":"Number of tasks per page"},"page":{"type":"integer","description":"Page number"},"is_more":{"type":"boolean","description":"True if there are more tasks to retrieve"}}}}},"parameters":[{"in":"query","name":"project_id","description":"Filter tasks on given project ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_status_id","description":"Filter tasks on given task status ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"task_type_id","description":"Filter tasks on given task type ID ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"person_id","description":"Filter tasks on given person ID","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"start_date","description":"Filter tasks posterior to given start date","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"due_date","description":"Filter tasks anterior to given due date","type":"string","format":"date","x-example":"2022-07-12"},{"in":"query","name":"priority","description":"Filter tasks on given priority","type":"integer","x-example":"3"},{"in":"query","name":"page","description":"Page number","type":"integer","x-example":1,"default":1},{"in":"query","name":"limit","description":"Number of tasks per page","type":"integer","x-example":100,"default":100}],"tags":["Tasks"]}},"/data/tasks/open-tasks/stats":{"get":{"summary":"Return task amount, task done amount, total estimation, total duration","description":"by status by task type by project for open projects. It aggregates the
result at the project level.
","responses":{"200":{"description":"A dict organized by project that contains the results for each task type and status pairs."}},"tags":["Tasks"]}},"/data/tasks/{task_id}/comments":{"get":{"summary":"Return comments linked to given task.","responses":{"200":{"description":"Comments linked to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/comments/{comment_id}":{"get":{"summary":"Get comment corresponding at given ID.","responses":{"200":{"description":"Comment corresponding at given ID"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]},"delete":{"summary":"Delete a comment corresponding at given ID.","responses":{"204":{"description":"Comment corresponding at given ID deleted"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/previews":{"get":{"summary":"Return previews linked to given task.","responses":{"200":{"description":"Previews linked to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/full":{"get":{"summary":"Return a task with many information.","description":"Full details for assignees, full details for task type, full details for task status, etc.","responses":{"200":{"description":"Task with many information"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/{person_id}/tasks":{"get":{"summary":"Return task assigned to given user of which status has is_done flag sets to false.","responses":{"200":{"description":"Tasks assigned to user that are not done"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/{person_id}/related-tasks/{task_type_id}":{"get":{"summary":"For all entities assigned to given person (that have at least one task assigned to given person), returns all tasks for given task type.","responses":{"200":{"description":"All Tasks for given task type"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/{person_id}/done-tasks":{"get":{"summary":"Return task assigned to given user of which status has is_done flag sets to true.","description":"It return only tasks related to open projects.","responses":{"200":{"description":"Tasks assigned to user that are done"}},"parameters":[{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/entities/{entity_id}/task-types/{task_type_id}/tasks":{"get":{"summary":"Return tasks related to given entity asset, episode, sequence, shot or scene.","responses":{"200":{"description":"Tasks related to given entity asset, episode, sequence, shot or scene"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/comments":{"get":{"summary":"Retrieve all comments to tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All comments to tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/notifications":{"get":{"summary":"Retrieve all notifications to tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All notifications to tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/preview-files":{"get":{"summary":"Preview files related to a given project.","responses":{"200":{"description":"Preview files related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/subscriptions":{"get":{"summary":"Retrieve all subcriptions to tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All subcriptions to tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/projects/{project_id}/tasks":{"get":{"summary":"Retrieve all tasks related to given project.","description":"It's mainly used for synchronisation purpose.","responses":{"200":{"description":"All tasks related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"page","required":false,"type":"integer","x-example":1},{"in":"query","name":"task_type_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"episode_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/data/persons/task-dates":{"get":{"summary":"For schedule usages, for each active person, it returns the first start","description":"date of all tasks of assigned to this person and the last end date.
","responses":{"200":{"description":"For each person, the first start date of all tasks of assigned to this person and the last end date."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/delete-tasks":{"delete":{"summary":"Delete all tasks for a given task type and project.","description":"It's mainly used when tasks are created by mistake at the beginning of the project.","responses":{"204":{"description":"All tasks for given task type and project deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/delete-tasks":{"post":{"summary":"Delete tasks matching id list given in parameter.","description":"See it as a way to batch delete tasks.","responses":{"200":{"description":"Tasks matching id list given in parameter deleted"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/assign":{"put":{"summary":"Assign given task list to given person.","responses":{"200":{"description":"Given task assigned to given person"},"400":{"description":"Assignee non-existent in database"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Person","description":"Person ID","schema":{"type":"object","required":["person_id"],"properties":{"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Tasks"]}},"/actions/tasks/clear-assignation":{"put":{"summary":"Remove all assignations set to given task.","responses":{"200":{"description":"All assignations removed"}},"parameters":[{"in":"body","name":"Task","description":"List of tasks ID and person ID","schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Tasks"]}},"/actions/persons/{person_id}/assign":{"put":{"summary":"Assign given task lists to given person.","description":"If a given task ID is wrong, it ignores it.","responses":{"200":{"description":"Given tasks lists assigned to given person"}},"parameters":[{"in":"path","name":"person_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25","required":true},{"in":"body","name":"Task","description":"List of tasks ID","schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}}}}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents/{date}":{"get":{"summary":"Get time spent on a given task and date.","responses":{"200":{"description":"Time spent on given task and date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents":{"get":{"summary":"Get time spent on a given task.","responses":{"200":{"description":"Time spent on given task"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents/{date}/persons/{person_id}":{"post":{"summary":"Set time spent by a person on a task for a given day.","responses":{"201":{"description":"Time spent by given person on given task for given day is set"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Duration","schema":{"type":"object","properties":{"duration":{"type":"float"}}}}],"tags":["Tasks"]},"delete":{"summary":"Delete time spent by a person on a task for a given day.","responses":{"201":{"description":"Time spent by given person on given task for given day is removed"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/time-spents/{date}/persons/{person_id}/add":{"post":{"summary":"Add given timeframe to time spent by a person on a task for a given day.","responses":{"201":{"description":"Given timeframe added to time spent by given person on given task for given day"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"},{"in":"path","name":"person_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Duration","schema":{"type":"object","properties":{"duration":{"type":"float"}}}}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/comments/{comment_id}/add-preview":{"post":{"summary":"Add preview metadata to given task. The preview file itself should be","description":"uploaded afterward.

Revision is automatically set: it is equal to last revision + 1. It can
be also set manually.
","responses":{"201":{"description":"Preview metadata added to given task"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","schema":{"type":"object","properties":{"revision":{"type":"integer"}}}}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/comments/{comment_id}/preview-files/{preview_file_id}":{"post":{"summary":"Add a preview to given comment.","responses":{"201":{"description":"Preview added to given comment"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","type":"file","required":true}],"tags":["Tasks"]},"delete":{"summary":"Delete preview from given comment.","responses":{"204":{"description":"Preview deleted from given comment"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"comment_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/to-review":{"put":{"summary":"Change a task status to \"to review\".","description":"It creates a new preview file entry and set path from the hard disk.","responses":{"200":{"description":"Task status changed to \"to review\""},"400":{"description":"Given person not found"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"body","name":"Task","description":"person ID, name, comment, revision and change status of task","schema":{"type":"object","properties":{"person_id":{"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"},"comment":{"type":"string"},"name":{"type":"string"},"revision":{"type":"integer"},"change_status":{"type":"boolean"}}}}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/shots/create-tasks":{"post":{"summary":"Create a new task for given shot and task type.","responses":{"201":{"description":"New task for given shot and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/assets/create-tasks":{"post":{"summary":"Create a new task for given asset and task type.","responses":{"201":{"description":"New task for given asset and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/edits/create-tasks":{"post":{"summary":"Create a new task for given edit and task type.","responses":{"201":{"description":"New task for given edit and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/concepts/create-tasks":{"post":{"summary":"Create a new task for given concept and task type.","responses":{"201":{"description":"New task for given concept and task type created"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/projects/{project_id}/task-types/{task_type_id}/create-tasks/{entity_type}/":{"post":{"summary":"Create a new task with given task type for each entity of given","description":"entity type.
","responses":{"201":{"description":"List of created tasks."}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Tasks"]}},"/actions/tasks/{task_id}/set-main-preview":{"put":{"summary":"Set last preview from given task as main preview of the related entity.","description":"This preview will be used as thumbnail to illustrate the entity.
","responses":{"200":{"description":"Given preview set as main preview"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Task"]}},"/data/playlists/preview-files/running":{"get":{"summary":"Retrieve all preview files from open productions with states equals to processing or broken.","responses":{"200":{"description":"All preview files from open productions with states equals to processing or broken"}},"tags":["Previews"]}},"/pictures/preview-files/{instance_id}":{"post":{"summary":"Main resource to add a preview.","description":"It stores the preview file and generates three picture files matching preview when it's possible: a square thumbnail, a rectangle thumbnail and a midsize file.","responses":{"200":{"description":"Preview added"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]}},"/movies/originals/preview-files/{instance_id}.mp4":{"get":{"summary":"Download a movie preview.","description":"It stores the preview file and generates three picture files matching preview when it's possible: a square thumbnail, a rectangle thumbnail and a midsize file.","responses":{"200":{"description":"Movie preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"File not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/movies/originals/preview-files/{instance_id}/download":{"get":{"summary":"Download a movie preview.","responses":{"200":{"description":"Movie preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"File not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/movies/low/preview-files/{instance_id}.mp4":{"get":{"summary":"Download a lowdef movie preview.","responses":{"200":{"description":"Lowdef movie preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"File not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/attachment-files/{attachment_file_id}.png":{"get":{"summary":"Download the thumbnail representing given attachment file.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"attachment_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails-square/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/originals/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/originals/preview-files/{instance_id}.{extension}":{"get":{"summary":"Download a generic file preview.","responses":{"200":{"description":"Generic file preview downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Non-movie file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"extension","required":true,"type":"string","x-example":"png, pdf, jpg, jpeg, ..."}],"tags":["Previews"]}},"/pictures/originals/preview-files/{instance_id}/download":{"get":{"summary":"Download a generic file preview as attachment.","responses":{"200":{"description":"Generic file preview downloaded as attachment"},"403":{"description":"Instance not allowed"},"404":{"description":"Standard file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/previews/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/movies/tiles/preview-files/{instance_id}.png":{"get":{"summary":"Download a thumbnail.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Instance not allowed"},"404":{"description":"Picture file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/organisations/{instance_id}":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/organisations/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/persons/{instance_id}":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/persons/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/projects/{instance_id}":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/thumbnails/projects/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/preview-background-files/{instance_id}":{"post":{"summary":"Main resource to add a preview background file.","responses":{"200":{"description":"Preview background file added"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Preview background file"],"consumes":["multipart/form-data","image/vnd.radiance"]}},"/pictures/thumbnails/preview-background-files/{instance_id}.png":{"post":{"summary":"Create a thumbnail for given object instance.","responses":{"200":{"description":"Thumbnail created"},"404":{"description":"Cannot found related object."}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"file","required":true,"type":"file"}],"tags":["Previews"],"consumes":["multipart/form-data","image/png","application/pdf"]},"get":{"summary":"Download the thumbnail linked to given object instance.","responses":{"200":{"description":"Thumbnail downloaded"},"403":{"description":"Access not allowed"},"404":{"description":"Object instance not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/pictures/preview-background-files/{instance_id}.{extension}":{"get":{"summary":"Download a preview background file.","responses":{"200":{"description":"Preview background file downloaded"},"404":{"description":"Preview background file not found"}},"parameters":[{"in":"path","name":"instance_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"extension","required":true,"type":"string","format":"extension","x-example":"hdr"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/set-main-preview":{"put":{"summary":"Set given preview as main preview of the related entity.","description":"This preview will be used to illustrate the entity.","responses":{"200":{"description":"Given preview set as main preview"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/extract-frame":{"get":{"summary":"Extract a frame from a preview_file","description":" ","responses":{"200":{"description":"Extracted frame"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/update-position":{"put":{"summary":"Allow to change orders of previews for a single revision.","description":"This preview will be used to illustrate the entity.","responses":{"200":{"description":"Orders of previews changed for a single revision"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/update-annotations":{"put":{"summary":"Allow to modify the annotations stored at the preview level.","description":"Modifications are applied via three fields:\n* `annotations` to give all the annotations that need to be added.\n\n* `updates` that list annotations that needs to be modified.\n\n* `deletions` to list the IDs of annotations that needs to be removed.\n","responses":{"200":{"description":"Orders of previews changed for a single revision"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Previews"]}},"/data/user/context":{"get":{"summary":"Return context required to properly run a full app connected to the API","description":"(like the Kitsu web client).
","responses":{"200":{"description":"Context to properly run a full app connected to the API"}},"tags":["User"]}},"/data/user/assets/{asset_id}/tasks":{"get":{"summary":"Return tasks related to given asset for current user.","responses":{"200":{"description":"Tasks related to given asset for current user"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/shots/{shot_id}/tasks":{"get":{"summary":"Return tasks related to given shot for current user.","responses":{"200":{"description":"Tasks related to given shot"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/scenes/{scene_id}/tasks":{"get":{"summary":"Return tasks related to given scene for current user.","responses":{"200":{"description":"Tasks related to given scene"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/tasks":{"get":{"summary":"Return tasks related to given sequence for current user.","responses":{"200":{"description":"Tasks related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/assets/{asset_id}/task-types":{"get":{"summary":"Return task types related to given asset for current user.","responses":{"200":{"description":"Task types related to given asset for current user"}},"parameters":[{"in":"path","name":"asset_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/shots/{shot_id}/task-types":{"get":{"summary":"Return tasks related to given shot for current user.","responses":{"200":{"description":"Tasks related to given shot for current user"}},"parameters":[{"in":"path","name":"shot_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/scenes/{scene_id}/task-types":{"get":{"summary":"Return tasks related to given scene for current user.","responses":{"200":{"description":"Tasks related to given scene for current user"}},"parameters":[{"in":"path","name":"scene_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/task-types":{"get":{"summary":"Return tasks related to given sequence for current user.","responses":{"200":{"description":"Tasks related to given sequence for current user"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/open":{"get":{"summary":"Return open projects for which the user has at least one task assigned.","responses":{"200":{"description":"Open projects for which the user has at least one task assigned"}},"tags":["User"]}},"/data/user/projects/{project_id}/asset-types":{"get":{"summary":"Return asset types related to given project if the current user has","description":"access to it.
","responses":{"200":{"description":"Asset types related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/asset-types/{asset_type_id}/assets":{"get":{"summary":"Return assets of which type is given asset type and are listed in given","description":"project if user has access to this project.
","responses":{"200":{"description":"Assets of which type is given asset type and are listed in given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"asset_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/sequences":{"get":{"summary":"Return sequences related to given project if the current user has access","description":"to it.
","responses":{"200":{"description":"Sequences related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/episodes":{"get":{"summary":"Return episodes related to given project if the current user has access","description":"to it.
","responses":{"200":{"description":"Episodes related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/shots":{"get":{"summary":"Return shots related to given sequence if the current user has access","description":"to it.
","responses":{"200":{"description":"Shots related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/sequences/{sequence_id}/scenes":{"get":{"summary":"Return scenes related to given sequence if the current user has access","description":"to it.
","responses":{"200":{"description":"Scenes related to given sequence"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/tasks":{"get":{"summary":"Return tasks currently assigned to current user and of which status has","description":"is_done attribute set to false.
","responses":{"200":{"description":"Unfinished tasks currently assigned to current user"}},"tags":["User"]}},"/data/user/tasks-to-check":{"get":{"summary":"Return tasks requiring feedback for current user departments.","description":"
If the user is not a supervisor, it returns an empty list.
","responses":{"200":{"description":"Tasks requiring feedback in current user departments."}},"tags":["User"]}},"/data/user/done-tasks":{"get":{"summary":"Return tasks currently assigned to current user and of which status has","description":"is_done attribute set to true.
","responses":{"200":{"description":"Finished tasks currently assigned to current user"}},"tags":["User"]}},"/data/user/filters":{"post":{"summary":"Create filter for current user and only for open projects.","responses":{"201":{"description":"Filter for current user and only for open projects created"}},"parameters":[{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of filter"},{"in":"formData","name":"query","required":true,"type":"string"},{"in":"formData","name":"list_type","required":true,"type":"string"},{"in":"formData","name":"entity_type","required":false,"type":"string"},{"in":"formData","name":"project_id","required":true,"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"get":{"summary":"Retrieve filters for current user and only for open projects.","responses":{"200":{"description":"Filters for current user and only for open projects"}},"tags":["User"]}},"/data/user/filters/{filter_id}":{"put":{"summary":"Update given filter if it's owned by current user.","responses":{"200":{"description":"Given filter with updated data."}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"delete":{"summary":"Delete given filter if it's owned by current user.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/filter-groups":{"post":{"summary":"Create filter group for current user and only for open projects.","responses":{"201":{"description":"Filter groups for the current user and only for open projects created."}},"parameters":[{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of filter"},{"in":"formData","name":"color","required":true,"type":"string"},{"in":"formData","name":"list_type","required":true,"type":"string"},{"in":"formData","name":"entity_type","required":false,"type":"string"},{"in":"formData","name":"project_id","required":true,"type":"string","format":"UUID","example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"get":{"summary":"Retrieve filter groups for current user and only for open projects.","responses":{"200":{"description":"Filter groups for current user and only for open projects"}},"tags":["User"]}},"/data/user/filter-groups/{filter_group_id}":{"get":{"summary":"Retrieve given filter group for the current user.","responses":{"200":{"description":"Filter groups for the current user and only for open projects"}},"tags":["User"]},"put":{"summary":"Update given filter group if it's owned by the current user.","responses":{"200":{"description":"Given filter group with updated data"}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"delete":{"summary":"Delete given filter group if it's owned by the current user.","responses":{"204":{"description":"Empty response"}},"parameters":[{"in":"path","name":"filter_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/desktop-login-logs":{"post":{"summary":"Create a desktop login log.","description":"The desktop login log can only be created by the current user.","responses":{"201":{"description":"Desktop login log created"}},"parameters":[{"in":"formData","name":"date","type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]},"get":{"summary":"Retrieve desktop login logs.","responses":{"200":{"description":"Desktop login logs"}},"tags":["User"]}},"/data/user/tasks/{task_id}/time-spents/{date}":{"get":{"summary":"Get time spents for current user and given date.","responses":{"200":{"description":"Time spents for current user and given date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]}},"/data/user/day-offs/{date}":{"get":{"summary":"Get day off object for current user and given date.","responses":{"200":{"description":"Day off object for current user and given date"},"404":{"description":"Wrong date format"}},"parameters":[{"in":"path","name":"date","required":true,"type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]}},"/data/user/notifications":{"get":{"summary":"Return last 100 user notifications filtered by given parameters.","responses":{"200":{"description":"100 last user notifications"}},"parameters":[{"in":"formData","name":"after","type":"string","format":"date","x-example":"2022-07-12"},{"in":"formData","name":"before","type":"string","format":"date","x-example":"2022-07-12"}],"tags":["User"]}},"/data/user/notifications/{notification_id}":{"get":{"summary":"Return notification matching given id, only if it's a notification that","description":"belongs to current user.
","responses":{"200":{"description":"Notification matching given ID"}},"parameters":[{"in":"path","name":"notification_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"put":{"summary":"Change notification read status.","responses":{"200":{"description":"Notification"}},"parameters":[{"in":"path","name":"notification_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/tasks/{task_id}/subscribed":{"get":{"summary":"Return true if current user has subscribed to given task.","responses":{"200":{"description":"True if current user has subscribed to given task, False otherwise"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/chats":{"get":{"summary":"Return chats where user is participant.","responses":{"200":{"description":"Chats where user is participant"}},"tags":["User"]}},"/actions/user/chats/{entity_id}/join":{"post":{"summary":"Join chat for given entity (be listed as participant).","responses":{"201":{"description":"Chat joined"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]},"delete":{"summary":"Leave chat for given entity (be removed from participants).","responses":{"204":{"description":"empty response"}},"parameters":[{"in":"path","name":"entity_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/tasks/{task_id}/subscribe":{"post":{"summary":"Create a subscription entry for given task and current user.","description":"When a user subscribes, he gets notified everytime a comment is posted on the task.","responses":{"201":{"description":"Subscription entry created"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/tasks/{task_id}/unsubscribe":{"delete":{"summary":"Remove the subscription entry matching given task and current user.","description":"The user will no longer receive notifications for this task.","responses":{"204":{"description":"Subscription entry removed"}},"parameters":[{"in":"path","name":"task_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/clear-avatar":{"delete":{"summary":"Set `has_avatar` flag to False for current user and remove its avatar","description":"file.
","responses":{"204":{"description":"Avatar file deleted"}},"tags":["User"]}},"/data/user/entities/{sequence_id}/task-types/{task_type_id}/subscribed":{"get":{"summary":"Return true if current user has subscribed to given sequence and","description":"task type.
","responses":{"200":{"description":"True if current user has subscribed to given sequence and task type, False otherwise"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/data/user/projects/{project_id}/task-types/{task_type_id}/sequence-subscriptions":{"get":{"summary":"Return the list of sequence ids to which the current user has","description":"subscribed for given task type.
","responses":{"200":{"description":"List of sequence ids to which the current user has subscribed for given task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/sequences/{sequence_id}/task-types/{task_type_id}/subscribe":{"post":{"summary":"Create a subscription entry for given sequence,","description":"task type and current user.
","responses":{"201":{"description":"Subscription entry created"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/sequences/{sequence_id}/task-types/{task_type_id}/unsubscribe":{"delete":{"summary":"Remove a subscription entry for given sequence, tasl type","description":"and current user.
","responses":{"204":{"description":"Subscription entry removed"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"path","name":"task_type_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["User"]}},"/actions/user/notifications/mark-all-as-read":{"post":{"summary":"Mark all notifications as read for the current user.","responses":{"200":{"description":"All notifications marked as read"}},"tags":["User"]}},"/data/edits":{"get":{"summary":"Retrieve all edit entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All edit entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"name","required":false,"type":"string","x-example":"Name of edit"},{"in":"query","name":"force","required":false,"type":"boolean","default":false}],"tags":["Edits"]}},"/data/edits/all":{"get":{"summary":"Retrieve all edit entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All edit entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"name","required":false,"type":"string","x-example":"Name of edit"},{"in":"query","name":"force","required":false,"type":"boolean","default":false}],"tags":["Edits"]}},"/data/edits/with-tasks":{"get":{"summary":"Retrieve all edits, adds project name and all related tasks.","responses":{"200":{"description":"All edits and all related tasks."}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"name","required":false,"type":"string","x-example":"Name of edit"},{"in":"query","name":"force","required":false,"type":"boolean","default":false}],"tags":["Edits"]}},"/data/edits/{edit_id}":{"get":{"summary":"Retrieve given edit.","responses":{"200":{"description":"Given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]},"delete":{"summary":"Delete given edit.","responses":{"204":{"description":"Given edit deleted"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given edit.","responses":{"200":{"description":"All task types related to given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given edit.","responses":{"200":{"description":"All tasks related to given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given edit.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/edits/{edit_id}/versions":{"get":{"summary":"Retrieve data versions of given edit.","responses":{"200":{"description":"Data versions of given edit"}},"parameters":[{"in":"path","name":"edit_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/episodes/{episode_id}/edits":{"get":{"summary":"Retrieve all edits related to a given episode.","responses":{"200":{"description":"All efits related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/episodes/{episode_id}/edit-tasks":{"get":{"summary":"Retrieve all tasks related to a given episode.","responses":{"200":{"description":"All tasks related to given episode"}},"parameters":[{"in":"path","name":"episode_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/projects/{project_id}/edits":{"post":{"summary":"Create an edit for given project.","responses":{"201":{"description":"Edit created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of edit"},{"in":"formData","name":"description","type":"string","x-example":"Description of edit"},{"in":"formData","name":"episode_id","type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]},"get":{"summary":"Retrieve all edits related to a given project.","responses":{"200":{"description":"All edits related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Edits"]}},"/data/search":{"post":{"summary":"Search for resource","responses":{"200":{"description":"List of entities that contain the query"}},"parameters":[{"in":"formData","name":"query","required":true,"type":"string","x-example":"test will search for test"},{"in":"formData","name":"limit","required":false,"type":"integer","default":3,"x-example":3},{"in":"formData","name":"index_names","required":false,"type":"list of strings","default":["assets","shots","persons"],"x-example":["assets"]}],"tags":["Search"]}},"/data/concepts":{"get":{"summary":"Retrieve all concept entries.","description":"Filters can be specified in the query string.","responses":{"200":{"description":"All concept entries"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"query","name":"parent_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/with-tasks":{"get":{"summary":"Retrieve all concepts, adds project name and asset type name and all related tasks.","responses":{"200":{"description":"All concepts"}},"parameters":[{"in":"query","name":"project_id","required":false,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}":{"get":{"summary":"Retrieve given concept.","responses":{"200":{"description":"Given concept"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]},"delete":{"summary":"Delete given concept.","responses":{"204":{"description":"Given concept deleted"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}/task-types":{"get":{"summary":"Retrieve all task types related to a given concept.","responses":{"200":{"description":"All task types related to given concept"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}/tasks":{"get":{"summary":"Retrieve all tasks related to a given concept.","responses":{"200":{"description":"All tasks related to given concept"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/concepts/{concept_id}/preview-files":{"get":{"summary":"Retrieve all previews related to a given concept.","description":"It sends them as a dict. Keys are related task type ids and values are arrays of preview for this task type.","responses":{"200":{"description":"All previews related to given episode"}},"parameters":[{"in":"path","name":"concept_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}},"/data/projects/{project_id}/concepts":{"post":{"summary":"Create a concept for given project.","responses":{"201":{"description":"Concept created for given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"},{"in":"formData","name":"name","required":true,"type":"string","x-example":"Name of concept"},{"in":"formData","name":"description","type":"string","x-example":"Description of concept"},{"in":"formData","name":"entity_concept_links","type":"list of UUIDs","x-example":["a24a6ea4-ce75-4665-a070-57453082c25"]}],"tags":["Concepts"]},"get":{"summary":"Retrieve all concepts related to a given project.","responses":{"200":{"description":"All concepts related to given project"}},"parameters":[{"in":"path","name":"project_id","required":true,"type":"string","format":"UUID","x-example":"a24a6ea4-ce75-4665-a070-57453082c25"}],"tags":["Concepts"]}}},"components":{"securitySchemes":{"JWT Authorization":{"name":"Authorization","in":"header","type":"apiKey","description":"Format in header: **Authorization: Bearer {token}**. \n\n Value example: Bearer xxxxx.yyyyy.zzzzz"}}},"openapi":"3.0.2","externalDocs":{"description":"Read the installation documentation","url":"https://zou.cg-wire.com"},"host":"localhost:8080","basePath":"/api","schemes":["http","https"],"security":[{"JWT Authorization":[]}],"tags":[{"name":"Authentication"},{"name":"Assets"},{"name":"Breakdown"},{"name":"Comments"},{"name":"Crud"},{"name":"Edits"},{"name":"Entities"},{"name":"Events"},{"name":"Export"},{"name":"Files"},{"name":"Import"},{"name":"Index"},{"name":"News"},{"name":"Persons"},{"name":"Playlists"},{"name":"Previews"},{"name":"Projects"},{"name":"Search"},{"name":"Shots"},{"name":"Tasks"},{"name":"User"}]} \ No newline at end of file