{"info":{"title":"Kitsu API","description":"\n## Welcome to the Kitsu API specification\n```Version: 1.1.1```\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<div class=\"auth\">\n\n<p>Before you can use any of the endpoints outlined below,\nyou will need to obtain a JWT token to authorize your requests.\n</p>\n\n<p>\nYou will find detailed information on how to retrieve authentication tokens in the\n[Zou documentation](https://zou.cg-wire.com/api/).\n</p>\n\n<p>\nAll API requests require authentication via JWT tokens passed in the Authorization header.\n</p>\n","contact":{"name":"CGWire","url":"https://www.cg-wire.com"},"version":"1.1.1","license":{"name":"AGPL 3.0","url":"https://www.gnu.org/licenses/agpl-3.0.en.html"}},"paths":{"/auth/login":{"post":{"summary":"Log in","description":"Log in a user and get authentication tokens. The email field accepts the email address or the desktop login of the user. Desktop tools that do not know the email address use the desktop login. If the user has two-factor authentication, give one second factor. The organisation has the chat tokens only for an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":1,"example":"admin@example.com","description":"Email address or desktop login of the user"},"password":{"type":"string","format":"password","example":"********","description":"Password of the user"},"totp":{"type":"string","example":"123456","description":"TOTP code from the authenticator app"},"email_otp":{"type":"string","example":"123456","description":"One-time password that the user got by email"},"fido_authentication_response":{"type":"object","description":"Response of the FIDO device to the challenge"},"recovery_code":{"type":"string","example":"ABCD-EFGH-IJKL-MNOP","description":"One recovery code of the user"}},"required":["email"]}}}},"responses":{"200":{"description":"The login is successful. If the instance enforces two-factor authentication and the user has not set it up, the body has two_factor_authentication_required and the tokens only give access to the authentication routes until the setup is done."},"400":{"description":"The login failed. The body tells the cause with the flags default_password, missing_OTP, wrong_OTP or too_many_failed_login_attemps. A wrong email and a wrong password give the same answer."},"401":{"description":"The user is inactive. The body has the flag unactive."},"409":{"description":"The authentication strategy is not correctly configured"},"500":{"description":"The database is not available, or a server error occurred"}},"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/login\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"email\": \"admin@example.com\",\n  \"password\": \"mysecretpassword\",\n  \"totp\": 123456,\n  \"email_otp\": 123456,\n  \"fido_authentication_response\": {},\n  \"recovery_code\": \"ABCD-EFGH-IJKL-MNOP\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/login\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"email\": \"admin@example.com\",\n    \"password\": \"mysecretpassword\",\n    \"totp\": 123456,\n    \"email_otp\": 123456,\n    \"fido_authentication_response\": {},\n    \"recovery_code\": \"ABCD-EFGH-IJKL-MNOP\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/logout":{"get":{"summary":"Log out","description":"Log out the current user. This route revokes the access token and the refresh token. After this operation, the tokens cannot access the API.","responses":{"200":{"description":"The logout is successful","content":{"application/json":{"schema":{"type":"object","properties":{"logout":{"type":"boolean","example":true}}}}}},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/auth/logout\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/logout\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/authenticated":{"get":{"summary":"Get the authentication status","description":"Get the current user and the organisation if the token is valid. A browser frontend or a third-party tool uses this route to know if the user is still logged in. The organisation has the chat tokens only for an administrator.","responses":{"200":{"description":"The user is authenticated","content":{"application/json":{"schema":{"type":"object","properties":{"authenticated":{"type":"boolean","example":true},"user":{"type":"object","description":"Current user, with relations and FIDO devices"},"organisation":{"type":"object"}}}}}},"401":{"description":"The token is missing, not valid or expired"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/auth/authenticated\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/authenticated\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/change-password":{"post":{"summary":"Change the password","description":"Change the password of the current user. Give the current password and the new password two times.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"old_password":{"type":"string","format":"password","minLength":1,"description":"Current password"},"password":{"type":"string","format":"password","minLength":1,"description":"New password"},"password_2":{"type":"string","format":"password","minLength":1,"description":"New password again"}},"required":["old_password","password","password_2"]}}}},"responses":{"200":{"description":"The password is changed"},"400":{"description":"The current password is wrong, the two new passwords are different, the new password is too short, the user is inactive, or too many login attempts failed recently"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/change-password\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"old_password\": \"\",\n  \"password\": \"\",\n  \"password_2\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/change-password\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"old_password\": \"\",\n    \"password\": \"\",\n    \"password_2\": \"\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/reset-password":{"post":{"summary":"Ask for a password reset","description":"Send an email with a password reset link to the user. You do not need a token for this route. The response is the same if the address is unknown or if the user is inactive.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","minLength":1,"example":"admin@example.com","description":"Email address of the user"}},"required":["email"]}}}},"responses":{"200":{"description":"The request is received"}},"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/reset-password\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"email\": \"admin@example.com\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/reset-password\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"email\": \"admin@example.com\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Reset the password with a token","description":"Set a new password for a user who forgot the password. Give the token from the password reset email. The token proves that the user asked for the reset.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","minLength":1,"example":"admin@example.com","description":"Email address of the user"},"token":{"type":"string","minLength":1,"description":"Password reset token from the email"},"password":{"type":"string","format":"password","minLength":1,"description":"New password"},"password2":{"type":"string","format":"password","minLength":1,"description":"New password again"}},"required":["email","token","password","password2"]}}}},"responses":{"200":{"description":"The password is changed"},"400":{"description":"The token is wrong or expired, the password is not valid, or the user is inactive"}},"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/auth/reset-password\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"email\": \"admin@example.com\",\n  \"token\": \"\",\n  \"password\": \"\",\n  \"password2\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/reset-password\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"email\": \"admin@example.com\",\n    \"token\": \"\",\n    \"password\": \"\",\n    \"password2\": \"\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/refresh-token":{"get":{"summary":"Refresh the access token","description":"Get a new access token. Send the refresh token as the bearer token. An access token expires after a period. Use this route before the access token expires. A browser gets the new token in a cookie.","responses":{"200":{"description":"The new access token, or a refresh flag for a browser","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"refresh":{"type":"boolean"}}}}}},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/auth/refresh-token\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/refresh-token\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/app-login/code":{"post":{"summary":"Make a browser login code","description":"Make a one-time code for the current user. A desktop app or a script on the same computer uses this code to get its own tokens. The code is linked to the PKCE challenge in the body. The code expires after 60 seconds. A bot cannot make a code. A user who must set up two-factor authentication first cannot make a code.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code_challenge":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","example":"E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM","description":"SHA-256 of the PKCE code verifier, encoded in base64url without padding (43 characters)"}},"required":["code_challenge"]}}}},"responses":{"201":{"description":"The one-time login code","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"One-time login code"}}}}}},"400":{"description":"The code challenge is not correct"},"403":{"description":"The token belongs to a bot, or the user must set up two-factor authentication first"}},"tags":["Authentication"]}},"/auth/app-login/token":{"post":{"summary":"Change a browser login code into tokens","description":"Change a one-time browser login code into a new pair of access and refresh tokens. You can use a code one time only. The code verifier must agree with the PKCE challenge of the code. The response has the same shape as the response of a login. This route does not set cookies. The organisation has the chat tokens only for an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":128,"description":"One-time login code"},"code_verifier":{"type":"string","pattern":"^[A-Za-z0-9._~-]{43,128}$","example":"dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk","description":"PKCE code verifier (43 to 128 characters)"}},"required":["code","code_verifier"]}}}},"responses":{"200":{"description":"The user, the organisation and the two tokens","content":{"application/json":{"schema":{"type":"object","properties":{"login":{"type":"boolean","example":true},"user":{"type":"object"},"organisation":{"type":"object"},"access_token":{"type":"string"},"refresh_token":{"type":"string"}}}}}},"400":{"description":"The code is unknown, expired or used, the verifier is not correct, or the user is inactive"}},"tags":["Authentication"]}},"/auth/totp":{"post":{"summary":"Enable the TOTP","description":"Enable the authentication with a time-based one-time password (TOTP). Give a code from the authenticator app to confirm this operation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"totp":{"type":"string","minLength":1,"description":"TOTP code from the authenticator app"}},"required":["totp"]}}}},"responses":{"200":{"description":"The TOTP is enabled. The body has the recovery codes."},"400":{"description":"The TOTP is already enabled, or the code is wrong"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/totp\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"totp\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/totp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"totp\": \"\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Disable the TOTP","description":"Disable the authentication with a time-based one-time password (TOTP). Give a second factor to confirm this operation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Give one of the second factors of the user.","properties":{"totp":{"type":"string","description":"TOTP code from the authenticator app"},"email_otp":{"type":"string","description":"One-time password that the user got by email"},"fido_authentication_response":{"type":"object","description":"Response of the FIDO device to the challenge"},"recovery_code":{"type":"string","description":"One recovery code of the user"}}}}}},"responses":{"200":{"description":"The TOTP is disabled"},"400":{"description":"The TOTP is not enabled, or the second factor is wrong"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/auth/totp\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"totp\": \"\",\n  \"email_otp\": \"\",\n  \"fido_authentication_response\": {},\n  \"recovery_code\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/totp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"totp\": \"\",\n    \"email_otp\": \"\",\n    \"fido_authentication_response\": {},\n    \"recovery_code\": \"\"\n}\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Prepare the TOTP","description":"Get the provisioning URI and the secret for the authenticator app. Use them to enable the time-based one-time password (TOTP).","responses":{"200":{"description":"The provisioning URI and the secret","content":{"application/json":{"schema":{"type":"object","properties":{"totp_provisionning_uri":{"type":"string"},"otp_secret":{"type":"string"}}}}}},"400":{"description":"The TOTP is already enabled"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/auth/totp\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/totp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/email-otp":{"get":{"summary":"Send an email OTP","description":"Send a one-time password (OTP) by email to the user. You do not need a token for this route. The response is the same if the address is unknown, or if the account cannot get an OTP by email.","responses":{"200":{"description":"The request is received","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true}}}}}},"400":{"description":"email is missing"}},"parameters":[{"in":"query","name":"email","required":true,"schema":{"type":"string"},"example":"admin@example.com","description":"Email address or desktop login of the user"}],"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/auth/email-otp?email=\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/email-otp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"email\": \"\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"post":{"summary":"Enable the email OTP","description":"Enable the authentication with a one-time password (OTP) sent by email. Give the code that the user got by email to confirm this operation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email_otp":{"type":"string","minLength":1,"description":"One-time password that the user got by email"}},"required":["email_otp"]}}}},"responses":{"200":{"description":"The email OTP is enabled"},"400":{"description":"The email OTP is already enabled, or the code is wrong"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/email-otp\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"email_otp\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/email-otp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"email_otp\": \"\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Disable the email OTP","description":"Disable the authentication with a one-time password (OTP) sent by email. Give a second factor to confirm this operation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Give one of the second factors of the user.","properties":{"totp":{"type":"string","description":"TOTP code from the authenticator app"},"email_otp":{"type":"string","description":"One-time password that the user got by email"},"fido_authentication_response":{"type":"object","description":"Response of the FIDO device to the challenge"},"recovery_code":{"type":"string","description":"One recovery code of the user"}}}}}},"responses":{"200":{"description":"The email OTP is disabled"},"400":{"description":"The email OTP is not enabled, or the second factor is wrong"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/auth/email-otp\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"totp\": \"\",\n  \"email_otp\": \"\",\n  \"fido_authentication_response\": {},\n  \"recovery_code\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/email-otp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"totp\": \"\",\n    \"email_otp\": \"\",\n    \"fido_authentication_response\": {},\n    \"recovery_code\": \"\"\n}\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Prepare the email OTP","description":"Send a one-time password (OTP) by email to the current user. Use this code to enable the email OTP.","responses":{"200":{"description":"The code is sent"},"400":{"description":"The email OTP is already enabled"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/auth/email-otp\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/email-otp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/recovery-codes":{"put":{"summary":"Make new recovery codes","description":"Make new recovery codes for the two-factor authentication of the current user. The new codes replace the old codes. Give a second factor to confirm this operation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Give one of the second factors of the user.","properties":{"totp":{"type":"string","description":"TOTP code from the authenticator app"},"email_otp":{"type":"string","description":"One-time password that the user got by email"},"fido_authentication_response":{"type":"object","description":"Response of the FIDO device to the challenge"},"recovery_code":{"type":"string","description":"One recovery code of the user"}}}}}},"responses":{"200":{"description":"The new recovery codes","content":{"application/json":{"schema":{"type":"object","properties":{"otp_recovery_codes":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"Two-factor authentication is not enabled, or the second factor is wrong"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/auth/recovery-codes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"totp\": \"\",\n  \"email_otp\": \"\",\n  \"fido_authentication_response\": {},\n  \"recovery_code\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/recovery-codes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"totp\": \"\",\n    \"email_otp\": \"\",\n    \"fido_authentication_response\": {},\n    \"recovery_code\": \"\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/fido":{"get":{"summary":"Get a FIDO challenge","description":"Get a challenge for the FIDO devices of the user. You do not need a token for this route. Use the challenge to log in with WebAuthn.","responses":{"200":{"description":"The FIDO challenge"},"400":{"description":"email is missing, or no FIDO challenge is available for this user"}},"parameters":[{"in":"query","name":"email","required":true,"schema":{"type":"string"},"example":"admin@example.com","description":"Email address or desktop login of the user"}],"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/auth/fido?email=\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/fido\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"email\": \"\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"post":{"summary":"Register a FIDO device","description":"Register a FIDO device for the current user. First, prepare the registration. Then, send the response of the device.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"registration_response":{"type":"object","description":"Registration response of the FIDO device"},"device_name":{"type":"string","minLength":1,"description":"Name of the FIDO device"}},"required":["registration_response","device_name"]}}}},"responses":{"200":{"description":"The FIDO device is registered"},"400":{"description":"The registration failed, or the registration is not prepared"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/fido\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"registration_response\": {},\n  \"device_name\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/fido\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"registration_response\": {},\n    \"device_name\": \"\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Remove a FIDO device","description":"Remove a FIDO device of the current user. Give a second factor to confirm this operation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"device_name":{"type":"string","minLength":1,"description":"Name of the FIDO device to remove"},"totp":{"type":"string","description":"TOTP code from the authenticator app"},"email_otp":{"type":"string","description":"One-time password that the user got by email"},"fido_authentication_response":{"type":"object","description":"Response of the FIDO device to the challenge"},"recovery_code":{"type":"string","description":"One recovery code of the user"}},"required":["device_name"]}}}},"responses":{"200":{"description":"The FIDO device is removed"},"400":{"description":"FIDO is not enabled, or the second factor is wrong"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/auth/fido\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"totp\": \"\",\n  \"email_otp\": \"\",\n  \"fido_authentication_response\": {},\n  \"recovery_code\": \"\",\n  \"device_name\": \"\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/fido\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"totp\": \"\",\n    \"email_otp\": \"\",\n    \"fido_authentication_response\": {},\n    \"recovery_code\": \"\",\n    \"device_name\": \"\"\n}\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Prepare a FIDO registration","description":"Get the WebAuthn registration options for a new FIDO device of the current user.","responses":{"200":{"description":"The WebAuthn registration options"},"403":{"description":"The token belongs to a bot"}},"tags":["Authentication"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/auth/fido\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/fido\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/saml/sso":{"post":{"summary":"Receive the SAML SSO response","description":"Receive the authentication response of the SAML identity provider. If SAML_SUBJECT_ATTRIBUTE is set, this route logs in the person linked to the issuer and the subject of the assertion. The email finds the account at the first login only. If no person has this email, a new person is created.","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["SAMLResponse"],"properties":{"SAMLResponse":{"type":"string","description":"SAML response of the identity provider, base64 encoded"}}}}}},"responses":{"302":{"description":"The login is successful. Redirect to the home page."},"400":{"description":"SAML is not enabled, a parameter is wrong, or the account is linked to a different identity"}},"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/auth/saml/sso\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/saml/sso\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/saml/login":{"get":{"summary":"Start the SAML SSO login","description":"Start an SSO login. This route redirects to the SAML identity provider.","responses":{"302":{"description":"Redirect to the SAML identity provider"},"400":{"description":"SAML is not enabled, or a parameter is wrong"}},"tags":["Authentication"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/auth/saml/login\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/auth/saml/login\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/auth/oidc/login":{"get":{"summary":"Start the OIDC SSO login","description":"Start an SSO login. This route redirects to the OpenID Connect identity provider.","responses":{"302":{"description":"Redirect to the OIDC identity provider"},"400":{"description":"OIDC is not enabled"}},"tags":["Authentication"],"security":[]}},"/auth/oidc/callback":{"get":{"summary":"Receive the OIDC SSO callback","description":"Receive the response of the OpenID Connect identity provider. This route changes the authorization code into tokens and validates the ID token. Then, it logs in the person linked to the issuer and the subject of the token. At the first login, the person with the email of the token is linked to this identity. If no person has this email, a new person is created.","responses":{"302":{"description":"The login is successful. Redirect to the home page."},"400":{"description":"OIDC is not enabled, the authentication failed, the email is not verified, the provider gives no email, or the account is linked to a different identity"}},"tags":["Authentication"],"security":[]}},"/data/asset-types":{"get":{"summary":"Get asset types","description":"Get the asset types. An asset type is an entity type that is not shot, sequence, episode, edit, scene, concept or concept folder. Add a query parameter for each column to filter on.","responses":{"200":{"description":"The list of asset types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Asset type name","example":"Character"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}}},"parameters":[{"in":"query","name":"project_id","description":"Get only the asset types that the assets of this project use","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-types?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-types/{asset_type_id}":{"get":{"summary":"Get an asset type","description":"Get an asset type.","responses":{"200":{"description":"The asset type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Asset type name","example":"Character"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"404":{"description":"The asset type does not exist"}},"parameters":[{"in":"path","name":"asset_type_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","required":true,"description":"Unique identifier of the asset type","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets":{"get":{"summary":"Get assets","description":"Get the assets of the projects that you can access. An administrator gets the assets of all projects. Add a query parameter for each column to filter on. For example, use name=Chair to get the assets with this name. The route /data/assets/all gives the same result. A vendor gets only the assets of their assigned tasks, without the metadata columns hidden from their departments.","responses":{"200":{"description":"The list of assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_name":{"type":"string","description":"Project name","example":"My Project"},"asset_type_name":{"type":"string","description":"Asset type name","example":"Character"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","description":"Get only the assets of this project","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"entity_type_id","description":"Get only the assets of this asset type","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"episode_id","description":"Get the assets of this episode and the assets cast in this episode. The project of the episode is used for the access check.","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"assigned_to","description":"With any value, get only the assets that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets?project_id=a24a6ea4-ce75-4665-a070-57453082c25&asset_type_id=a24a6ea4-ce75-4665-a070-57453082c25&page=1&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"asset_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"page\": 1,\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/all":{"get":{"summary":"Get assets","description":"Get the assets of the projects that you can access. An administrator gets the assets of all projects. Add a query parameter for each column to filter on. For example, use name=Chair to get the assets with this name. The route /data/assets/all gives the same result. A vendor gets only the assets of their assigned tasks, without the metadata columns hidden from their departments.","responses":{"200":{"description":"The list of assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_name":{"type":"string","description":"Project name","example":"My Project"},"asset_type_name":{"type":"string","description":"Asset type name","example":"Character"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","description":"Get only the assets of this project","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"entity_type_id","description":"Get only the assets of this asset type","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"episode_id","description":"Get the assets of this episode and the assets cast in this episode. The project of the episode is used for the access check.","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"assigned_to","description":"With any value, get only the assets that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/all?project_id=a24a6ea4-ce75-4665-a070-57453082c25&asset_type_id=a24a6ea4-ce75-4665-a070-57453082c25&page=1&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/all\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"asset_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"page\": 1,\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/with-tasks":{"get":{"summary":"Get assets with their tasks","description":"Get the assets of the projects that you can access, with the tasks of each asset. Each asset has its project name and asset type name. Filter with project_id, episode_id or assigned_to. The other columns are not filters on this route. A vendor gets only the assets of their assigned tasks, without the metadata columns hidden from their departments. A client gets the tasks without the studio fields (assignees, estimation, dates, retake count). The response can have an ETag. Send it in If-None-Match to get a 304 response when the data did not change.","responses":{"200":{"description":"The list of assets with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_name":{"type":"string","description":"Project name","example":"My Project"},"asset_type_name":{"type":"string","description":"Asset type name","example":"Character"},"tasks":{"type":"array","items":{"type":"object"},"description":"Array of related tasks"}}}}}}},"304":{"description":"The data did not change"},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","description":"Filter assets by specific project","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"episode_id","description":"Get the assets of this episode and the assets cast in this episode. Use main to get the assets that have no episode. Use all to get the assets of all episodes.","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string"}},{"in":"query","name":"compact","description":"Encode assets and tasks as positional value arrays (halves the payload). Field names are given by the asset_fields and task_fields entries of the response, map values by name, never by hardcoded position.","schema":{"type":"boolean","default":false}},{"in":"query","name":"stream","description":"Stream the response as NDJSON (one header line, then one asset per line) instead of a single JSON document, to keep server memory flat on large productions.","schema":{"type":"boolean","default":false}},{"in":"query","name":"assigned_to","description":"With any value, get only the assets that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25&episode_id=a24a6ea4-ce75-4665-a070-57453082c25&asset_type_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"asset_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}":{"get":{"summary":"Get an asset","description":"Get an asset with its project name, asset type name, tasks and other related data. A vendor must have a task assigned on the asset. A client gets the tasks without the studio fields.","responses":{"200":{"description":"The asset","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","required":true,"description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an asset","description":"Delete an asset. The creator of the asset can delete it if the creator is in the project team. Other users must be managers of the project. If the asset has tasks, the asset is only marked as canceled. Use force=true to delete the asset and all its related data. Only a manager of the project can use force=true.","responses":{"204":{"description":"The asset is deleted"},"403":{"description":"You cannot delete this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","required":true,"description":"Unique identifier of the asset to delete","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"force","required":false,"description":"Delete the asset and all its related data","example":false,"schema":{"type":"boolean"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/assets":{"get":{"summary":"Get the assets cast in an asset","description":"Get the assets that are cast in an asset. An asset can contain other assets. For example, a set contains props.","responses":{"200":{"description":"The list of assets cast in the asset","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Linked asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Linked asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/assets\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/tasks":{"get":{"summary":"Get the tasks of an asset","description":"Get the tasks of an asset.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Task name","example":"Modeling Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"08002400-2431-0221-0736-130196482810"},"entity_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"assigned_to":{"type":"string","format":"uuid","description":"Assigned user identifier","example":"19113511-3542-1332-1847-241207593920"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each task","schema":{"type":"boolean","default":false}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/tasks?task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&task_status_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/task-types":{"get":{"summary":"Get the task types of an asset","description":"Get the task types of the tasks of an asset.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"name":{"type":"string","description":"Task type name","example":"Modeling"},"short_name":{"type":"string","description":"Task type short name","example":"MOD"},"color":{"type":"string","description":"Task type color code","example":"#FF5733"},"for_entity":{"type":"string","description":"Entity type this task type is for","example":"Asset"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/cast-in":{"get":{"summary":"Get the shots where an asset is cast","description":"Get the shots and the assets that have this asset in their casting. A shot entry has shot_id, shot_name, sequence_name and episode_id. An asset entry has asset_id, asset_name and asset_type_name.","responses":{"200":{"description":"The list of shots and assets that cast the asset","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"Shot name","example":"SH001"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"sequence_id":{"type":"string","format":"uuid","description":"Sequence identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"frame_in":{"type":"integer","description":"Frame in","example":100},"frame_out":{"type":"integer","description":"Frame out","example":200},"duration":{"type":"integer","description":"Shot duration in frames","example":100}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/cast-in\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/cast-in\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/casting":{"get":{"summary":"Get the casting of an asset","description":"Get the casting of an asset. The casting is the list of assets that the asset contains, with the number of occurrences of each asset.","responses":{"200":{"description":"The casting of the asset","content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"casting":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Casting entry unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier (shot/sequence)","example":"d57d91d7-f108-7998-d403-80786315f580"},"entity_name":{"type":"string","description":"Entity name","example":"SH001"},"entity_type":{"type":"string","description":"Entity type (shot/sequence)","example":"shot"}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Replace the casting of an asset","description":"Replace the casting of an asset. Send the full list of assets that the asset contains. The assets that are not in the list are removed from the casting. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["asset_id"],"properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset to cast","example":"b35b7fb5-df86-5776-b181-68564193d360"},"nb_occurences":{"type":"integer","minimum":0,"default":1,"description":"Number of occurrences of the asset"},"label":{"type":"string","default":"","description":"Label of the link"}}}}}}},"responses":{"200":{"description":"The new casting of the asset","content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"casting":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Casting entry unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"entity_name":{"type":"string","description":"Entity name","example":"SH001"}}}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"casting\": [\n    {\n      \"entity_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n      \"entity_type\": \"shot\"\n    }\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"casting\": [\n        {\n            \"entity_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n            \"entity_type\": \"shot\"\n        }\n    ]\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/shot-asset-instances":{"get":{"summary":"Get the shot instances of an asset","description":"Get the asset instances of an asset that are in shots.","responses":{"200":{"description":"The list of asset instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"shot_id":{"type":"string","format":"uuid","description":"Shot identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/shot-asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/shot-asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/scene-asset-instances":{"get":{"summary":"Get the scene instances of an asset","description":"Get the asset instances of an asset that are in scenes.","responses":{"200":{"description":"The list of asset instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"scene_id":{"type":"string","format":"uuid","description":"Scene identifier","example":"08002400-2431-0221-0736-130196482810"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/scene-asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/scene-asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/assets/{asset_id}/asset-asset-instances":{"post":{"summary":"Add an asset instance to an asset","description":"Make an instance of an asset and put it in the asset of the path. A client or a vendor of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["asset_to_instantiate_id"],"properties":{"asset_to_instantiate_id":{"type":"string","format":"uuid","description":"Unique identifier of the asset to instantiate","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","description":"Description for the asset instance","example":"Asset instance description"}}}}}},"responses":{"201":{"description":"The new asset instance","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Created asset instance unique identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"asset_id":{"type":"string","format":"uuid","description":"Parent asset identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"target_asset_id":{"type":"string","format":"uuid","description":"Target asset identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset that receives the instance","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/asset-asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"asset_to_instantiate_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"description\": \"Asset instance description\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/asset-asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"asset_to_instantiate_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"description\": \"Asset instance description\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the asset instances of an asset","description":"Get the asset instances that are in an asset. An asset instance is a copy of an asset in another asset.","responses":{"200":{"description":"The list of asset instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"asset_id":{"type":"string","format":"uuid","description":"Parent asset identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"target_asset_id":{"type":"string","format":"uuid","description":"Target asset identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/asset-asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/assets/a24a6ea4-ce75-4665-a070-57453082c25/asset-asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/assets":{"get":{"summary":"Get the assets of an asset type in a project","description":"Get the assets of a project that have the asset type of the path. Add a query parameter for each column to filter on. For example, use name=Chair to get the assets with this name. A vendor gets only the assets of their assigned tasks, without the metadata columns hidden from their departments.","responses":{"200":{"description":"The list of assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_name":{"type":"string","description":"Project name","example":"My Project"},"asset_type_name":{"type":"string","description":"Asset type name","example":"Character"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_type_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset type","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/a24a6ea4-ce75-4665-a070-57453082c25/assets?page=1&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/a24a6ea4-ce75-4665-a070-57453082c25/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/assets/new":{"post":{"summary":"Create an asset","description":"Create an asset in a project, with the asset type of the path. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"example":"Chair","description":"Name of the asset"},"description":{"type":"string","default":"","description":"Description of the asset"},"data":{"type":"object","default":{},"description":"Values of the metadata columns"},"is_shared":{"type":"boolean","default":false,"description":"Share the asset with the other projects of the studio"},"episode_id":{"type":"string","format":"uuid","nullable":true,"example":"c46c80c6-e097-6887-c292-79675204e470","description":"Episode where the asset is created"}}}}}},"responses":{"201":{"description":"The new asset","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Created asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"description":{"type":"string","description":"Asset description","example":"Main character"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project or the asset type does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_type_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset type","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/new\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Character Name\",\n  \"description\": \"Main character\",\n  \"data\": [\n    {\n      \"difficulty\": \"easy\",\n      \"atmsophere\": \"sunny\"\n    }\n  ],\n  \"is_shared\": false,\n  \"source_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/new\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Character Name\",\n    \"description\": \"Main character\",\n    \"data\": [\n        {\n            \"difficulty\": \"easy\",\n            \"atmsophere\": \"sunny\"\n        }\n    ],\n    \"is_shared\": false,\n    \"source_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/asset-types":{"get":{"summary":"Get the asset types of a project","description":"Get the asset types that the assets of a project use.","responses":{"200":{"description":"The list of asset types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Asset type name","example":"Character"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","required":true,"description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/asset-types":{"get":{"summary":"Get the asset types of a shot","description":"Get the asset types of the assets that are cast in a shot.","responses":{"200":{"description":"The list of asset types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Asset type name","example":"Character"},"shot_id":{"type":"string","format":"uuid","description":"Shot identifier","example":"d57d91d7-f108-7998-d403-80786315f580"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","required":true,"description":"Unique identifier of the shot","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/asset-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/asset-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/assets":{"get":{"summary":"Get the assets of a project","description":"Get the assets of a project. Add a query parameter for each column to filter on. For example, use name=Chair to get the assets with this name. A vendor gets only the assets of their assigned tasks, without the metadata columns hidden from their departments.","responses":{"200":{"description":"The list of assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_name":{"type":"string","description":"Project name","example":"My Project"},"asset_type_name":{"type":"string","description":"Asset type name","example":"Character"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","required":true,"description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"entity_type_id","description":"Get only the assets of this asset type","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"episode_id","description":"Get the assets of this episode and the assets cast in this episode. The project of the episode is used for the access check.","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"assigned_to","description":"With any value, get only the assets that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets?asset_type_id=a24a6ea4-ce75-4665-a070-57453082c25&page=1&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"asset_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"page\": 1,\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/assets/share":{"post":{"summary":"Share or unshare assets","description":"Share or unshare the assets of the list. A shared asset is available to the other projects of the studio. You must be a manager of each project of the assets. Without asset_ids, no asset changes and the response is an empty list.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asset_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of asset IDs to update","example":["a24a6ea4-ce75-4665-a070-57453082c250","b35b7fb5-df86-5776-b181-68564193d360"]},"is_shared":{"type":"boolean","description":"Whether to share or unshare the assets","example":true}}}}}},"responses":{"200":{"description":"The updated assets","content":{"application/json":{"schema":{"type":"object","properties":{"updated_count":{"type":"integer","description":"Number of assets updated","example":2},"asset_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of updated asset IDs","example":["a24a6ea4-ce75-4665-a070-57453082c250","b35b7fb5-df86-5776-b181-68564193d360"]}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of a project of the assets"}},"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/assets/share\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"asset_ids\": [\n    \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"b35b7fb5-df86-5776-b181-68564193d36\"\n  ],\n  \"is_shared\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/assets/share\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"asset_ids\": [\n        \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"b35b7fb5-df86-5776-b181-68564193d36\"\n    ],\n    \"is_shared\": true\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/assets/share":{"post":{"summary":"Share or unshare the assets of a project","description":"Share or unshare the assets of a project. If you give asset_ids, only these assets change. Else, all the assets of the project change. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"is_shared":{"type":"boolean","description":"Whether to share or unshare the assets","example":true},"asset_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Specific asset IDs to update.","example":["a24a6ea4-ce75-4665-a070-57453082c250","b35b7fb5-df86-5776-b181-68564193d360"]}}}}}},"responses":{"200":{"description":"The updated assets","content":{"application/json":{"schema":{"type":"object","properties":{"updated_count":{"type":"integer","description":"Number of assets updated","example":5},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets/share\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"is_shared\": true,\n  \"asset_ids\": [\n    \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"b35b7fb5-df86-5776-b181-68564193d36\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets/share\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"is_shared\": true,\n    \"asset_ids\": [\n        \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"b35b7fb5-df86-5776-b181-68564193d36\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/asset-types/{asset_type_id}/assets/share":{"post":{"summary":"Share or unshare the assets of an asset type","description":"Share or unshare all the assets of a project that have the asset type of the path. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"is_shared":{"type":"boolean","description":"Whether to share or unshare the assets","example":true}}}}}},"responses":{"200":{"description":"The updated assets","content":{"application/json":{"schema":{"type":"object","properties":{"updated_count":{"type":"integer","description":"Number of assets updated","example":3},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"asset_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_type_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset type","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/share\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"is_shared\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/share\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"is_shared\": true\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/assets/shared-used":{"get":{"summary":"Get the shared assets used in a project","description":"Get the shared assets of other projects that are cast in a project.","responses":{"200":{"description":"The list of shared assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Original project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"is_shared":{"type":"boolean","description":"Whether the asset is shared","example":true}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets/shared-used\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets/shared-used\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes/{episode_id}/assets/shared-used":{"get":{"summary":"Get the shared assets used in an episode","description":"Get the shared assets of other projects that are cast in an episode.","responses":{"200":{"description":"The list of shared assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Character Name"},"project_id":{"type":"string","format":"uuid","description":"Original project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"is_shared":{"type":"boolean","description":"Whether the asset is shared","example":true},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"d57d91d7-f108-7998-d403-80786315f580"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the episode","schema":{"type":"string","format":"uuid"}}],"tags":["Assets"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/a24a6ea4-ce75-4665-a070-57453082c25/assets/shared-used\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/a24a6ea4-ce75-4665-a070-57453082c25/assets/shared-used\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/entities/{entity_id}/casting":{"get":{"summary":"Get the casting of an entity","description":"Get the casting of a shot, an asset or an episode. The casting of an entity is the list of assets in the entity, with the number of occurrences of each asset.","responses":{"200":{"description":"The casting of the entity","content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"casting":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Casting entry unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor, or the entity is not in the project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"entity_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entities/a24a6ea4-ce75-4665-a070-57453082c25/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entities/a24a6ea4-ce75-4665-a070-57453082c25/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Replace the casting of an entity","description":"Replace the casting of a shot, an asset or an episode. Send the full list of assets. The assets that are not in the list are removed from the casting. To change one asset only, use the route that casts one asset in entities. You must be a manager of the project. Each entry must have asset_id and nb_occurences. An entry without nb_occurences is skipped and its asset is removed from the casting.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["asset_id","nb_occurences"],"properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset to cast","example":"b35b7fb5-df86-5776-b181-68564193d360"},"nb_occurences":{"type":"integer","minimum":0,"description":"Number of occurrences of the asset"},"label":{"type":"string","default":"","description":"Label of the link"}}}}}}},"responses":{"200":{"description":"The new casting of the entity","content":{"application/json":{"schema":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"casting":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Casting entry unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"}}}}}}}}},"400":{"description":"The body is not a JSON array"},"403":{"description":"You are not a manager of the project, or the entity is not in the project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"entity_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entities/a24a6ea4-ce75-4665-a070-57453082c25/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"casting\": [\n    {\n      \"asset_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n      \"asset_name\": \"Main Character\"\n    }\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entities/a24a6ea4-ce75-4665-a070-57453082c25/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"casting\": [\n        {\n            \"asset_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n            \"asset_name\": \"Main Character\"\n        }\n    ]\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/entities/casting":{"put":{"summary":"Replace the casting of entities","description":"Replace the casting of entities of a project in one request. The body is a map of entity identifiers to casting lists. Each list has the format of the route that replaces the casting of one entity. You must be a manager of the project. Each entry must have asset_id and nb_occurences. An entry without nb_occurences is skipped and its asset is removed from the casting.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","required":["asset_id","nb_occurences"],"properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset to cast","example":"b35b7fb5-df86-5776-b181-68564193d360"},"nb_occurences":{"type":"integer","minimum":0,"description":"Number of occurrences of the asset"},"label":{"type":"string","default":"","description":"Label of the link"}}}},"example":{"a24a6ea4-ce75-4665-a070-57453082c250":[{"asset_id":"b35b7fb5-df86-5776-b181-68564193d360","nb_occurences":2}]}}}}},"responses":{"200":{"description":"A map of entity identifiers to their new casting","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The body is not a map of casting lists"},"403":{"description":"You are not a manager of the project, or an entity is not in the project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"]}},"/data/projects/{project_id}/entities/casting/assets/{asset_id}":{"put":{"summary":"Cast one asset in entities","description":"Set the casting of one asset in each entity of the list. The entities are shots, assets or episodes of the project. The other assets of each entity do not change. Thus two users can edit the casting at the same time. Set nb_occurences to 0 to remove the asset from the casting. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity_ids"],"properties":{"entity_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Entities to cast the asset in"},"nb_occurences":{"type":"integer","description":"Number of occurences, 0 removes the asset from the casting, omit to keep the current one (1 on a new link)"},"label":{"type":"string","description":"Casting label, omit to keep the current one"}}}}}},"responses":{"200":{"description":"A map of entity identifiers to their new casting","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The list of entities is empty, or nb_occurences is negative"},"403":{"description":"You are not a manager of the project, or an entity is not in the project"},"404":{"description":"The asset or an entity does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_id","required":true,"example":"c46c80c6-e097-6887-c292-79675204e470","description":"Unique identifier of the asset to cast","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"]}},"/data/projects/{project_id}/asset-types/{asset_type_id}/casting":{"get":{"summary":"Get the casting of an asset type","description":"Get the casting of each asset of an asset type in a project. The casting of an entity is the list of assets in the entity, with the number of occurrences of each asset.","responses":{"200":{"description":"A map of asset identifiers to castings","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"},"asset_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"08002400-2431-0221-0736-130196482810"},"casting":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"entity_name":{"type":"string","description":"Entity name","example":"SH001"},"entity_type":{"type":"string","description":"Entity type (shot/sequence)","example":"shot"}}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The asset type does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_type_id","required":true,"example":"08002400-2431-0221-0736-130196482810","description":"Unique identifier of the asset type","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/g80g2kg0-ik31-0221-g736-13019648i81/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/g80g2kg0-ik31-0221-g736-13019648i81/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes/casting":{"get":{"summary":"Get the casting of the episodes","description":"Get the casting of each episode of a project. The casting of an entity is the list of assets in the entity, with the number of occurrences of each asset.","responses":{"200":{"description":"A map of episode identifiers to castings","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"episode_id":{"type":"string","format":"uuid","description":"Episode unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"episode_name":{"type":"string","description":"Episode name","example":"Episode 01"},"casting":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"}}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/sequences/{sequence_id}/casting":{"get":{"summary":"Get the casting of the shots of a sequence","description":"Get the casting of each shot of a sequence. The casting of an entity is the list of assets in the entity, with the number of occurrences of each asset.","responses":{"200":{"description":"A map of shot identifiers to castings","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"shot_id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"shot_name":{"type":"string","description":"Shot name","example":"SH001"},"sequence_id":{"type":"string","format":"uuid","description":"Sequence identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"casting":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"}}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor, or the sequence is not in the project"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"sequence_id","required":true,"example":"f79f13f9-1320-9110-f625-029085371700","description":"Unique identifier of the sequence","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences/f79f1jf9-hj20-9110-f625-02908537h70/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences/f79f1jf9-hj20-9110-f625-02908537h70/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes/{episode_id}/sequences/all/casting":{"get":{"summary":"Get the casting of the shots of an episode","description":"Get the casting of each shot of an episode. The casting of an entity is the list of assets in the entity, with the number of occurrences of each asset.","responses":{"200":{"description":"A map of shot identifiers to castings","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"shot_id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"shot_name":{"type":"string","description":"Shot name","example":"SH001"},"casting":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"}}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"episode_id","required":true,"example":"d57d91d7-f108-7998-d403-80786315f580","description":"Unique identifier of the episode","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/d57d9hd7-fh08-7998-d403-80786315f58/sequences/all/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/d57d9hd7-fh08-7998-d403-80786315f58/sequences/all/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/sequences/all/casting":{"get":{"summary":"Get the casting of the shots of a project","description":"Get the casting of each shot of a project. The casting of an entity is the list of assets in the entity, with the number of occurrences of each asset.","responses":{"200":{"description":"A map of shot identifiers to castings","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"shot_id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"shot_name":{"type":"string","description":"Shot name","example":"SH001"},"sequence_id":{"type":"string","format":"uuid","description":"Sequence identifier","example":"f79f13f9-1320-9110-f625-029085371700"},"sequence_name":{"type":"string","description":"Sequence name","example":"SEQ01"},"casting":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"asset_name":{"type":"string","description":"Asset name","example":"Main Character"}}}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences/all/casting\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences/all/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/entity-links":{"get":{"summary":"Get the entity links of a project","description":"Get the entity links of a project. An entity link is one asset in the casting of an entity. Use page and limit to get the links page by page. For a more stable pagination, give the created_at value of the last link in cursor_created_at to get the next page. Synchronization tools use this route. You must be a manager of the project. With page, the response is a pagination envelope with data, total, nb_pages, limit, offset and page. Without page, the response is a list. cursor_created_at is ignored when page is given.","responses":{"200":{"description":"The list of entity links","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Entity link unique identifier","example":"64668a66-8a97-6887-6403-807863158470"},"entity_in_id":{"type":"string","format":"uuid","description":"Source entity identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"entity_out_id":{"type":"string","format":"uuid","description":"Target entity identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2020-01-01T00:00:00"}}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"page","required":false,"example":2,"description":"Page number for pagination","schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"example":100,"description":"Number of items per page","schema":{"type":"integer"}},{"in":"query","name":"cursor_created_at","required":false,"example":"2020-01-01T00:00:00","description":"Get the links created after this date","schema":{"type":"string","format":"date-time"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entity-links?page=2&limit=100&cursor_created_at=2020-01-01T00%3A00%3A00\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entity-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 2,\n    \"limit\": 100,\n    \"cursor_created_at\": \"2020-01-01T00:00:00\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/entity-links/{entity_link_id}":{"delete":{"summary":"Delete an entity link","description":"Delete an entity link of a project. An entity link is one asset in the casting of an entity. Synchronization tools use this route. You must be a manager of the project.","responses":{"200":{"description":"The deleted entity link"},"403":{"description":"You are not a manager of the project, or the link is not in the project"},"404":{"description":"The entity link does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"entity_link_id","required":true,"example":"64668a66-8a97-6887-6403-807863158470","description":"Unique identifier of the entity link","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entity-links/m46m8qm6-oq97-6887-m403-80786315o47\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/entity-links/m46m8qm6-oq97-6887-m403-80786315o47\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}/asset-instances":{"post":{"summary":"Add an asset instance to a scene","description":"Make an instance of an asset in a scene. A client or a vendor of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["asset_id"],"properties":{"asset_id":{"type":"string","format":"uuid","description":"Asset identifier to create instance from","example":"c46c80c6-e097-6887-c292-79675204e470"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}},"responses":{"201":{"description":"The new asset instance","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"31335733-5764-3554-3069-463429815140"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"scene_id":{"type":"string","format":"uuid","description":"Scene identifier","example":"20224622-4653-2443-2958-352318704030"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"20224622-4653-2443-2958-352318704030","description":"Unique identifier of the scene","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/scenes/i02i4mi2-km53-2443-i958-35231870k03/asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"asset_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n  \"description\": \"Main character instance\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/i02i4mi2-km53-2443-i958-35231870k03/asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"asset_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"description\": \"Main character instance\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the asset instances of a scene","description":"Get the asset instances of a scene.","responses":{"200":{"description":"The list of asset instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"31335733-5764-3554-3069-463429815140"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"scene_id":{"type":"string","format":"uuid","description":"Scene identifier","example":"20224622-4653-2443-2958-352318704030"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"20224622-4653-2443-2958-352318704030","description":"Unique identifier of the scene","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/i02i4mi2-km53-2443-i958-35231870k03/asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/i02i4mi2-km53-2443-i958-35231870k03/asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}/camera-instances":{"get":{"summary":"Get the camera instances of a scene","description":"Get the camera instances of a scene.","responses":{"200":{"description":"The list of camera instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Camera instance unique identifier","example":"42446844-6875-4665-4180-574530826250"},"camera_id":{"type":"string","format":"uuid","description":"Camera identifier","example":"53557955-7986-5776-5291-685641937360"},"scene_id":{"type":"string","format":"uuid","description":"Scene identifier","example":"20224622-4653-2443-2958-352318704030"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main camera instance"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"20224622-4653-2443-2958-352318704030","description":"Unique identifier of the scene","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/i02i4mi2-km53-2443-i958-35231870k03/camera-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/i02i4mi2-km53-2443-i958-35231870k03/camera-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/asset-instances":{"post":{"summary":"Add an asset instance to a shot","description":"Add an asset instance to a shot. A client or a vendor of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["asset_instance_id"],"properties":{"asset_instance_id":{"type":"string","format":"uuid","description":"Asset instance identifier to add","example":"19113511-3542-1332-1847-241207593920"}}}}}},"responses":{"201":{"description":"The shot","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Shot name","example":"SH001"},"asset_instances":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"19113511-3542-1332-1847-241207593920"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The shot or the asset instance does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"e68e02e8-0219-8009-e514-918974260690","description":"Unique identifier of the shot","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/shots/e68e0ie8-gi19-8009-e514-91897426g69/asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"asset_instance_id\": \"h91h3lh1-jl42-1332-h847-24120759j92\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/e68e0ie8-gi19-8009-e514-91897426g69/asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"asset_instance_id\": \"h91h3lh1-jl42-1332-h847-24120759j92\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the asset instances of a shot","description":"Get the asset instances of a shot.","responses":{"200":{"description":"The list of asset instances","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset instance unique identifier","example":"19113511-3542-1332-1847-241207593920"},"asset_id":{"type":"string","format":"uuid","description":"Asset identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"shot_id":{"type":"string","format":"uuid","description":"Shot identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"number":{"type":"string","description":"Instance number","example":"001"},"description":{"type":"string","description":"Instance description","example":"Main character instance"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"e68e02e8-0219-8009-e514-918974260690","description":"Unique identifier of the shot","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/e68e0ie8-gi19-8009-e514-91897426g69/asset-instances\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/e68e0ie8-gi19-8009-e514-91897426g69/asset-instances\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/asset-instances/{asset_instance_id}":{"delete":{"summary":"Remove an asset instance from a shot","description":"Remove an asset instance from a shot. A client or a vendor of the project cannot use this route.","responses":{"204":{"description":"The asset instance is removed from the shot"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The shot or the asset instance does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"e68e02e8-0219-8009-e514-918974260690","description":"Unique identifier of the shot","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_instance_id","required":true,"example":"19113511-3542-1332-1847-241207593920","description":"Unique identifier of the asset instance","schema":{"type":"string","format":"uuid"}}],"tags":["Breakdown"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/shots/e68e0ie8-gi19-8009-e514-91897426g69/asset-instances/h91h3lh1-jl42-1332-h847-24120759j92\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/e68e0ie8-gi19-8009-e514-91897426g69/asset-instances/h91h3lh1-jl42-1332-h847-24120759j92\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/chat":{"get":{"summary":"Get the chat of an entity","description":"Get the chat of an entity, with its participants and its messages. Clients cannot use this route.","responses":{"200":{"description":"The chat and its messages","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Chat unique identifier"},"entity_id":{"type":"string","format":"uuid","description":"Entity ID this chat is associated with"},"participants":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of participant user IDs"},"messages":{"type":"array","items":{"type":"object"},"description":"Array of chat messages"}}}}}},"403":{"description":"You are a client, or you do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","description":"Unique identifier of the entity that has the chat","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Chat"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/chat/messages":{"post":{"summary":"Send a chat message","description":"Send a message in the chat of an entity. Only the participants of the chat can send messages. Send JSON for a text message. Send multipart form data to attach files. Clients cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Message content to send","example":"Hello, world!"}},"required":["message"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Message content to send","example":"Hello, world!"},"files":{"type":"array","items":{"type":"string","format":"binary"},"description":"Files to attach to the message"}},"required":["message"]}}}},"responses":{"201":{"description":"The new message","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Created message unique identifier"},"message":{"type":"string","description":"Message content"},"person_id":{"type":"string","format":"uuid","description":"ID of the message sender"},"created_at":{"type":"string","format":"date-time","description":"Message creation timestamp"},"attachments":{"type":"array","items":{"type":"object"},"description":"Array of attached files"}}}}}},"400":{"description":"The message is missing, or you are not a participant of the chat"},"403":{"description":"You are a client, or you do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","description":"Unique identifier of the entity that has the chat","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Chat"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"message\": \"Hello, world!\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"message\": \"Hello, world!\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the chat messages","description":"Get the messages of the chat of an entity. Each message has its author and its date. Clients cannot use this route.","responses":{"200":{"description":"The list of messages","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Message unique identifier"},"message":{"type":"string","description":"Message content"},"person_id":{"type":"string","format":"uuid","description":"ID of the message sender"},"created_at":{"type":"string","format":"date-time","description":"Message creation timestamp"},"attachments":{"type":"array","items":{"type":"object"},"description":"Array of file attachments"}}}}}}},"403":{"description":"You are a client, or you do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","description":"Unique identifier of the entity that has the chat","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Chat"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/chat/messages/{chat_message_id}":{"get":{"summary":"Get a chat message","description":"Get a message of the chat of an entity. Clients cannot use this route.","responses":{"200":{"description":"The message","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Message unique identifier"},"message":{"type":"string","description":"Message content"},"person_id":{"type":"string","format":"uuid","description":"ID of the message sender"},"created_at":{"type":"string","format":"date-time","description":"Message creation timestamp"},"updated_at":{"type":"string","format":"date-time","description":"Message last update timestamp"},"attachments":{"type":"array","items":{"type":"object"},"description":"Array of file attachments"}}}}}},"403":{"description":"You are a client, or you do not have access to this entity, or the message is not in this chat"},"404":{"description":"The entity or the message does not exist"}},"parameters":[{"in":"path","name":"entity_id","description":"Unique identifier of the entity that has the chat","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"chat_message_id","description":"Unique identifier of the message","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Chat"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a chat message","description":"Delete a message of the chat of an entity. Only the author of the message or an administrator can delete it. Clients cannot use this route.","responses":{"204":{"description":"The message is deleted"},"403":{"description":"You are a client, you cannot delete this message, or the message is not in this chat"},"404":{"description":"The entity or the message does not exist"}},"parameters":[{"in":"path","name":"entity_id","description":"Unique identifier of the entity that has the chat","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"chat_message_id","description":"Unique identifier of the message to delete","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Chat"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/chat/messages/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/comments/{comment_id}/ack":{"post":{"summary":"Acknowledge a comment","description":"Acknowledge a comment for the current user. If the current user already acknowledged the comment, remove the acknowledgement.","responses":{"200":{"description":"The comment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Comment unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"acknowledged":{"type":"boolean","description":"Whether the comment is acknowledged","example":true}}}}}},"403":{"description":"You do not have access to this task"},"404":{"description":"The comment does not exist, or it is not on this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"comment_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/ack\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/ack\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/comments/{comment_id}/reply":{"post":{"summary":"Reply to a comment","description":"Add a reply to a comment. You must have access to the task. The author of the comment can reply. Other users must be able to do actions on the task, or be mentioned on it. A client cannot reply to a client of another studio. A client can see some threads. These are the comments for the client and the comments of a client. In these threads, only the managers and the clients can reply. Send multipart form data to attach files.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Reply text content","example":"Thanks for the feedback!"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"text":{"type":"string","description":"Reply text content","example":"Thanks for the feedback!"},"files":{"type":"array","description":"Files to attach to the reply","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"The new reply","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Reply unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"comment_id":{"type":"string","format":"uuid","description":"Parent comment identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"text":{"type":"string","description":"Reply text content","example":"Thanks for the feedback!"},"person_id":{"type":"string","format":"uuid","description":"Person identifier who made the reply","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"403":{"description":"The comment is not on this task, you do not have access to the task, you cannot do actions on the task and you are not mentioned on it, or you cannot reply in this thread"},"404":{"description":"The comment does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"comment_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/reply\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/reply\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/comments/{comment_id}/attachments/{attachment_file_id}":{"delete":{"summary":"Delete a comment attachment","description":"Delete a file attached to a comment. The author of the comment can delete it. Other users must be managers of the project.","responses":{"204":{"description":"The attachment is deleted"},"403":{"description":"You cannot change this comment, or the attachment is not on this comment"},"404":{"description":"The comment or the attachment does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"comment_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"attachment_file_id","required":true,"example":"c46c80c6-e097-6887-c292-79675204e470","description":"Unique identifier of the attachment","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/attachments/c46c8gc6-eg97-6887-c292-79675204e47\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/attachments/c46c8gc6-eg97-6887-c292-79675204e47\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/comments/{comment_id}/reply/{reply_id}":{"delete":{"summary":"Delete a comment reply","description":"Delete a reply of a comment. The comment must be on the task, and you must have access to the task. Only the author of the reply or an administrator can delete it.","responses":{"200":{"description":"The comment without the reply"},"403":{"description":"You do not have access to the task, or you cannot delete this reply"},"404":{"description":"The comment or the reply does not exist, or the comment is not on this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"comment_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"reply_id","required":true,"example":"c46c80c6-e097-6887-c292-79675204e470","description":"Unique identifier of the reply","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/reply/c46c8gc6-eg97-6887-c292-79675204e47\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/reply/c46c8gc6-eg97-6887-c292-79675204e47\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/attachment-files/{attachment_file_id}/file/{file_name}":{"get":{"summary":"Download an attachment","description":"Download a file attached to a comment or to a chat message. The browser shows JPEG, PNG, GIF, WebP, BMP and AVIF images. Other files are sent as downloads. Clients cannot get the files of a chat. A vendor must have a task on the entity.","responses":{"200":{"description":"The file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","description":"File content"}}}},"403":{"description":"You do not have access to the task of the comment or to the chat, you are a client and the file is in a chat, or the file is linked to nothing"},"404":{"description":"The attachment or its file does not exist"}},"parameters":[{"in":"path","name":"attachment_file_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the attachment file","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"file_name","required":true,"example":"document.pdf","description":"Name of the file to download","schema":{"type":"string"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25/file/document.pdf\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25/file/document.pdf\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/comments/{comment_id}/add-attachment":{"post":{"summary":"Add attachments to a comment","description":"Attach files to a comment. The author of the comment can attach files. Other users must be managers of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"string","description":"Files to attach to the comment","format":"binary"}},"required":["files"]}}}},"responses":{"201":{"description":"The list of the attachment files of the comment","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Attachment file unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"File name","example":"document.pdf"},"mimetype":{"type":"string","description":"File MIME type","example":"application/pdf"},"size":{"type":"integer","description":"File size in bytes","example":1024000},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"403":{"description":"You cannot change this comment, or the comment is not on this task"},"404":{"description":"The task or the comment does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"comment_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/add-attachment\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/b35b7fb5-df86-5776-b181-68564193d36/add-attachment\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/comments/{comment_id}/move":{"post":{"summary":"Move a comment to another task","description":"Move a comment to another task of the same entity. The entity can be a shot, an asset, a sequence, an episode or an edit. The comment keeps its text, attachments, mentions, creation date and status change. The notifications and the news of the comment move to the new task. Thus, the watchers of the new task get a notification. You cannot move a comment that is linked to a preview revision. You must have the manager role as your studio role. A manager role given on the project only is not enough. You must have access to the two tasks.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["target_task_id"],"properties":{"target_task_id":{"type":"string","format":"uuid","description":"Unique identifier of the task to move the comment to. Must belong to the same entity as the current task.","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}},"responses":{"200":{"description":"The moved comment, with its new object_id"},"400":{"description":"The comment is not on this task, the tasks are on different entities, the two tasks are the same, or the comment is linked to a preview revision"},"403":{"description":"You are not a studio manager, or you do not have access to one of the tasks"},"404":{"description":"The task, the target task or the comment does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"description":"Unique identifier of the comment's current task","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"comment_id","required":true,"description":"Unique identifier of the comment to move","example":"b35b7fb5-df86-5776-b181-68564193d360","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"]}},"/data/projects/{project_id}/attachment-files":{"get":{"summary":"Get the attachments of a project","description":"Get the files attached to the comments of a project. You must be an administrator.","responses":{"200":{"description":"The list of attachment files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Attachment file unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"File name","example":"document.pdf"},"mimetype":{"type":"string","description":"File MIME type","example":"application/pdf"},"size":{"type":"integer","description":"File size in bytes","example":1024000},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/attachment-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/attachment-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/attachment-files":{"get":{"summary":"Get the attachments of a task","description":"Get the files attached to the comments of a task. You must be an administrator.","responses":{"200":{"description":"The list of attachment files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Attachment file unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"File name","example":"document.pdf"},"mimetype":{"type":"string","description":"File MIME type","example":"application/pdf"},"size":{"type":"integer","description":"File size in bytes","example":1024000},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"reply_id":{"type":"string","format":"uuid","description":"Reply identifier if attached to a reply","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/attachment-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/attachment-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/comment":{"post":{"summary":"Comment a task","description":"Add a comment to a task and set the status of the task. Thus, the comments keep the history of the status changes. Send JSON, or send a multipart form to attach files. You must be able to do actions on the task. Managers and clients of the project, the assignees, the supervisors of the department of the task and the creator of the entity can do actions. A user who is mentioned on the task, but cannot do actions on it, can comment with the current status only. Vendors cannot use the mention rule.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"uuid","description":"New status of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment":{"type":"string","default":"","description":"Text of the comment"},"person_id":{"type":"string","format":"uuid","description":"Author of the comment. Managers only. Else the author is the current user."},"created_at":{"type":"string","example":"2026-10-28T10:00:00","description":"Creation date of the comment. Managers only."},"checklist":{"type":"array","items":{"type":"object"},"description":"Checklist items. In a multipart form, send a JSON string."},"links":{"type":"array","items":{"type":"string"},"description":"URLs linked to the comment. In a multipart form, send a JSON string."},"for_client":{"type":"boolean","default":false,"description":"Show the comment to the clients. Managers only."}}}},"multipart/form-data":{"schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"uuid","description":"New status of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment":{"type":"string","default":"","description":"Text of the comment"},"person_id":{"type":"string","format":"uuid","description":"Author of the comment. Managers only. Else the author is the current user."},"created_at":{"type":"string","example":"2026-10-28T10:00:00","description":"Creation date of the comment. Managers only."},"checklist":{"type":"array","items":{"type":"object"},"description":"Checklist items. In a multipart form, send a JSON string."},"links":{"type":"array","items":{"type":"string"},"description":"URLs linked to the comment. In a multipart form, send a JSON string."},"for_client":{"type":"boolean","default":false,"description":"Show the comment to the clients. Managers only."},"files":{"type":"array","items":{"type":"string","format":"binary"},"description":"Files to attach"}}}}}},"responses":{"201":{"description":"The new comment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Comment unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"comment":{"type":"string","description":"Comment text content","example":"This looks great! Ready for review."},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You cannot do actions on this task, or you cannot use this task status"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comment\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_status_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n  \"comment\": \"This looks great! Ready for review.\",\n  \"person_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n  \"created_at\": \"2023-01-01T12:00:00Z\",\n  \"checklist\": {\n    \"item1\": \"Check lighting\",\n    \"item2\": \"Verify textures\"\n  },\n  \"links\": [\n    \"https://example.com/reference1\",\n    \"https://example.com/reference2\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comment\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_status_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"comment\": \"This looks great! Ready for review.\",\n    \"person_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"created_at\": \"2023-01-01T12:00:00Z\",\n    \"checklist\": {\n        \"item1\": \"Check lighting\",\n        \"item2\": \"Verify textures\"\n    },\n    \"links\": [\n        \"https://example.com/reference1\",\n        \"https://example.com/reference2\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/tasks/comment-many":{"post":{"summary":"Comment several tasks","description":"Add a comment to each task of the list. Each comment sets the status of its task. Thus, the comments keep the history of the status changes. The author is the current user. An entry without task, status or text is skipped. A manager of the project can comment all the tasks. A supervisor can comment the tasks of their departments. Other users can comment their assigned tasks only. The other entries are skipped.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"object_id":{"type":"string","format":"uuid","description":"Task to comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","description":"New status of the task","example":"b35b7fb5-df86-5776-b181-68564193d360"},"comment":{"type":"string","description":"Text of the comment"},"links":{"type":"array","items":{"type":"string"},"description":"URLs linked to the comment"}}}}}}},"responses":{"201":{"description":"The list of new comments","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Comment unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"comment":{"type":"string","description":"Comment text content","example":"This looks great! Ready for review."},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You cannot use this task status"},"404":{"description":"The project does not exist, or a task of the list does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/tasks/comment-many\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"task_status_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"comment\": \"This looks great! Ready for review.\",\n    \"person_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"object_id\": \"e68e0ie8-gi19-8009-e514-91897426g69\",\n    \"created_at\": \"2023-01-01T12:00:00Z\",\n    \"checklist\": {\n      \"item1\": \"Check lighting\",\n      \"item2\": \"Verify textures\"\n    },\n    \"links\": [\n      \"https://example.com/reference1\",\n      \"https://example.com/reference2\"\n    ]\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/tasks/comment-many\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"task_status_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n        \"comment\": \"This looks great! Ready for review.\",\n        \"person_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n        \"object_id\": \"e68e0ie8-gi19-8009-e514-91897426g69\",\n        \"created_at\": \"2023-01-01T12:00:00Z\",\n        \"checklist\": {\n            \"item1\": \"Check lighting\",\n            \"item2\": \"Verify textures\"\n        },\n        \"links\": [\n            \"https://example.com/reference1\",\n            \"https://example.com/reference2\"\n        ]\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/tasks/copy-client-comments":{"post":{"summary":"Copy the client comments to the artists","description":"Artists do not see the comments of clients. For each task of the list, copy the last client comment into a new comment of the current user. Then the artists see it. The status of the task does not change. A task without client comment, or a task of another project, is skipped. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Identifiers of the tasks","example":["e68e02e8-0219-8009-e514-918974260690"]},"prefix":{"type":"string","description":"Text put before the client text, on its own line","example":"Client feedback:"}}}}}},"responses":{"201":{"description":"The new comments, one for each task with a client comment","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Comment unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"object_id":{"type":"string","format":"uuid","description":"Task identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"person_id":{"type":"string","format":"uuid","description":"Author identifier, the current user","example":"d57d91d7-f108-7998-d403-80786315f580"},"text":{"type":"string","description":"Copied text, with its prefix","example":"Client feedback:\n\nThe light is too warm."},"task_status_id":{"type":"string","format":"uuid","description":"Current status of the task","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Comments"]}},"/data/persons":{"post":{"summary":"Create a person","description":"Create a person. Send the fields of the new row in JSON. You must be an administrator. You cannot create an active person who is not a bot when the user limit is reached. The route checks role, contract_type, country, locale, display_date_format, two_factor_authentication and expiration_date. The expiration date cannot be in the past. The email must be valid. Only one person who is not a bot can use an email. The route ignores the preview account fields. For a bot, the response also gives its access_token.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["first_name","last_name","email"],"properties":{"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Doe"},"email":{"type":"string","format":"email","example":"john.doe@example.com"},"password":{"type":"string","example":"securepassword123"},"role":{"type":"string","example":"user"},"active":{"type":"boolean","default":true,"example":true},"contract_type":{"type":"string","example":"permanent"},"expiration_date":{"type":"string","format":"date","example":"2025-12-31"},"is_bot":{"type":"boolean","default":false,"example":false},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (nullable)","example":"FR"}}}}}},"responses":{"201":{"description":"The new person","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Doe"},"email":{"type":"string","format":"email","example":"john.doe@example.com"},"role":{"type":"string","example":"user"},"active":{"type":"boolean","example":true},"contract_type":{"type":"string","example":"permanent"},"two_factor_authentication":{"type":"string","example":"none"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (nullable)","example":"FR"},"access_token":{"type":"string","example":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/persons\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"password\": \"securepassword123\",\n  \"role\": \"user\",\n  \"active\": true,\n  \"contract_type\": \"permanent\",\n  \"two_factor_authentication\": \"none\",\n  \"expiration_date\": \"2025-12-31\",\n  \"is_bot\": false\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"email\": \"john.doe@example.com\",\n    \"password\": \"securepassword123\",\n    \"role\": \"user\",\n    \"active\": true,\n    \"contract_type\": \"permanent\",\n    \"two_factor_authentication\": \"none\",\n    \"expiration_date\": \"2025-12-31\",\n    \"is_bot\": false\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get person rows","description":"Get the person rows. All users can call this route. Preview accounts are not in the list. An administrator gets all the fields but the password, the two-factor secrets, the login failure fields and the OIDC and SAML identities. An administrator cannot filter on these fields. With with_pass_hash=true, an administrator also gets the password hash. A client gets only the people of the teams of their open projects, with a short set of fields. The other users get a minimal set of fields. Add a query parameter for each column to filter on, for example first_name=John. An administrator can filter on all the columns but the sensitive ones. The other users can filter only on the fields they get. A user who is not a client can also filter on email. To get the rows that have one value of a list, give the list in JSON.","responses":{"200":{"description":"The list of person rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"with_pass_hash","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Include password hash (admin only)"},{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons?page=1&limit=50&relations=false&with_pass_hash=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false,\n    \"with_pass_hash\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{instance_id}":{"get":{"summary":"Get a person","description":"Get a person. All users can call this route. A manager by global role, or an administrator, gets all the fields but the password, the two-factor secrets, the login failure fields and the OIDC and SAML identities. A client can read only the people of the teams of their open projects, with a short set of fields. The other users get a minimal set of fields.","responses":{"200":{"description":"The person","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Doe"},"email":{"type":"string","format":"email","example":"john.doe@example.com"},"role":{"type":"string","example":"user"},"active":{"type":"boolean","example":true},"contract_type":{"type":"string","example":"permanent"},"two_factor_authentication":{"type":"string","example":"none"},"departments":{"type":"array","items":{"type":"string","format":"uuid"},"example":[]},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (nullable)","example":"FR"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are a client and the person is not in the teams of your projects"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a person","description":"Delete a person. You cannot delete yourself or a protected account. Without force, the person is deleted only if no other data uses it. With force=true, the comments, notifications, logs, subscriptions, time spents, team memberships and task assignments of the person are deleted or detached first. You must be an administrator.","responses":{"204":{"description":"The person is deleted"},"400":{"description":"Other data uses the person and force is not set"},"403":{"description":"You are not an administrator, you try to delete yourself, or the account is protected"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Delete or detach all the data of the person first"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a person","description":"Update the fields of a person. Send only the fields to change. You can change your own person. To change another person, you must be an administrator. If you are not an administrator, the route ignores role, departments, active, is_bot, archived, studio_id, last_presence, the login failure fields and the LDAP, OIDC and SAML fields. A bot cannot change its own expiration_date. You cannot change id, created_at, updated_at, password, jti, the two-factor fields and the preview account fields. You cannot change a preview account. You cannot deactivate a protected account of another person or change its role. You cannot activate a person who is not a bot when the user limit is reached. The route checks role, contract_type, country, locale, display_date_format, two_factor_authentication, email and expiration_date. A new expiration date cannot be in the past. When you change expiration_date, the response gives a new access_token, unless the date is in the past. expiration_date uses the YYYY-MM-DD format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","example":"Jane"},"last_name":{"type":"string","example":"Smith"},"email":{"type":"string","format":"email","example":"jane.smith@example.com"},"role":{"type":"string","example":"manager","description":"Admin only"},"active":{"type":"boolean","example":true,"description":"Admin only"},"contract_type":{"type":"string","example":"freelance"},"expiration_date":{"type":"string","format":"date","example":"2025-12-31","description":"Person or admin only"},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (nullable)","example":"FR"}}}}}},"responses":{"200":{"description":"The updated person","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","example":"Jane"},"last_name":{"type":"string","example":"Smith"},"email":{"type":"string","format":"email","example":"jane.smith@example.com"},"role":{"type":"string","example":"manager"},"active":{"type":"boolean","example":true},"contract_type":{"type":"string","example":"freelance"},"two_factor_authentication":{"type":"string","example":"totp"},"departments":{"type":"array","items":{"type":"string","format":"uuid"},"example":[]},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (nullable)","example":"FR"},"access_token":{"type":"string","example":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"The person is not you and you are not an administrator, the person is a preview account, or you try to deactivate or change the role of a protected account"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"first_name\": \"Jane\",\n  \"last_name\": \"Smith\",\n  \"email\": \"jane.smith@example.com\",\n  \"password\": \"newsecurepassword123\",\n  \"role\": \"manager\",\n  \"active\": true,\n  \"contract_type\": \"freelance\",\n  \"two_factor_authentication\": \"totp\",\n  \"expiration_date\": \"2025-12-31\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Smith\",\n    \"email\": \"jane.smith@example.com\",\n    \"password\": \"newsecurepassword123\",\n    \"role\": \"manager\",\n    \"active\": true,\n    \"contract_type\": \"freelance\",\n    \"two_factor_authentication\": \"totp\",\n    \"expiration_date\": \"2025-12-31\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects":{"post":{"summary":"Create a project","description":"Create a project. Send the fields of the new row in JSON. You must be an administrator. A null production_style gives 2d3d. The route checks production_style, resolution and the movie bitrates. With project_template_id, the route applies the template, its asset type workflows included. The fields you send override the template values. Without project_status_id, the project gets the open status. default_preview_background_file_id must be in preview_background_files. A tvshow project gets a first episode E01. The project gets a copy of the metadata descriptors set for all projects.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Project Name"},"production_type":{"type":"string","example":"feature"},"production_style":{"type":"string","default":"2d3d","example":"2d3d"},"project_status_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Project Name"},"production_type":{"type":"string","example":"feature"},"production_style":{"type":"string","example":"2d3d"},"project_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"first_episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Project Name\",\n  \"production_type\": \"feature\",\n  \"production_style\": \"2d3d\",\n  \"project_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Project Name\",\n    \"production_type\": \"feature\",\n    \"production_style\": \"2d3d\",\n    \"project_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get project rows","description":"Get the project rows. All users can call this route. An administrator gets all the projects. The other users get only the open projects of their teams. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of project rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{instance_id}":{"get":{"summary":"Get a project","description":"Get a project. You must be in the team of the project, or an administrator. The response gives project_status_name. With relations (the default), it also gives the metadata descriptors, the task type priorities, the task status links and the asset type workflows. A client gets only the descriptors shared with clients. A vendor gets only the descriptors of their departments.","responses":{"200":{"description":"The project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Project Name"},"production_type":{"type":"string","example":"feature"},"production_style":{"type":"string","example":"2d3d"},"project_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"project_status_name":{"type":"string","example":"Open"},"descriptors":{"type":"array","items":{"type":"object"},"description":"Metadata descriptors of the project, narrowed to the ones published to a client or to the departments of a vendor"},"task_types_priority":{"type":"object","description":"Priority of each task type, by id"},"task_statuses_link":{"type":"object","description":"Priority and board roles of each task status, by id"},"asset_type_workflows":{"type":"object","description":"Task type ids of the workflows that the project sets, by asset type id. An asset type without an entry follows the studio workflow.","additionalProperties":{"type":"array","items":{"type":"string","format":"uuid"}}},"first_episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the team of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a project","description":"Delete a project. Close the project first. Without force, the project is deleted only if no other data uses it. With force=true, all the data of the project is deleted. You must be an administrator.","responses":{"204":{"description":"The project is deleted"},"400":{"description":"The project is open"},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"},"500":{"description":"Other data uses the project and force is false"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Delete all the data of the project"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a project","description":"Update the fields of a project. Send only the fields to change. You must be a manager in the team of the project, or an administrator. You cannot change id, created_at, updated_at and team. Use the team routes to change the team. The route checks production_style, resolution and the movie bitrates. A null production_style gives 2d3d. You can send preview_background_files, a list of preview background file identifiers. default_preview_background_file_id must be in the preview background files of the project. A tvshow project gets a first episode if it has none. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Project Name"},"production_style":{"type":"string","example":"2d"},"default_preview_background_file_id":{"type":"string","format":"uuid","description":"Default preview background file of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_background_files":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Preview background files of the project"}}}}}},"responses":{"200":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Project Name"},"production_type":{"type":"string","example":"feature"},"production_style":{"type":"string","example":"2d"},"project_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"first_episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, a field breaks a database constraint, or a preview background file is not one of the preview background files of the project"},"403":{"description":"You are not a manager in the team of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Project Name\",\n  \"production_style\": \"2d\",\n  \"preview_background_file_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Project Name\",\n    \"production_style\": \"2d\",\n    \"preview_background_file_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/project-status":{"post":{"summary":"Create a project status","description":"Create a project status. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Open"},"color":{"type":"string","example":"#00FF00"}}}}}},"responses":{"201":{"description":"The new project status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Open"},"color":{"type":"string","example":"#00FF00"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/project-status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Open\",\n  \"color\": \"#00FF00\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/project-status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Open\",\n    \"color\": \"#00FF00\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get project status rows","description":"Get the project status rows. All users can call this route. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of project status rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/project-status?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/project-status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/project-status/{instance_id}":{"get":{"summary":"Get a project status","description":"Get a project status. All users can read project statuses.","responses":{"200":{"description":"The project status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Open"},"color":{"type":"string","example":"#00FF00"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The project status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project status"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/project-status/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/project-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a project status","description":"Delete a project status. You must be an administrator.","responses":{"204":{"description":"The project status is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The project status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project status"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/project-status/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/project-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a project status","description":"Update the fields of a project status. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Closed"},"color":{"type":"string","example":"#FF0000"}}}}}},"responses":{"200":{"description":"The updated project status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Closed"},"color":{"type":"string","example":"#FF0000"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The project status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project status"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/project-status/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Closed\",\n  \"color\": \"#FF0000\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/project-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Closed\",\n    \"color\": \"#FF0000\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/project-templates":{"post":{"summary":"Create a project template","description":"Create an empty project template. Give a name and the production settings of the template. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"fps":{"type":"string"},"ratio":{"type":"string"},"resolution":{"type":"string"},"production_type":{"type":"string"},"production_style":{"type":"string"}}}}}},"responses":{"201":{"description":"The new project template"},"400":{"description":"The name is missing, a bitrate is not valid, or the name is already used"},"403":{"description":"You are not an administrator"}},"tags":["Crud"]},"get":{"summary":"Get project template rows","description":"Get the project template rows. You must be a manager or an administrator. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of project template rows, or a page of rows if you give page"},"400":{"description":"A filter is not valid"},"403":{"description":"You are not a manager or an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"]}},"/data/project-templates/{instance_id}":{"get":{"summary":"Get a project template","description":"Get a project template. You must be a manager or an administrator.","responses":{"200":{"description":"The project template"},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not a manager or an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Crud"]},"delete":{"summary":"Delete a project template","description":"Delete a project template. The projects made from this template do not change. You must be an administrator.","responses":{"204":{"description":"The project template is deleted"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Crud"]},"put":{"summary":"Update a project template","description":"Update the name, the description or the production settings of a project template. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"fps":{"type":"string"},"ratio":{"type":"string"},"resolution":{"type":"string"},"production_type":{"type":"string"},"production_style":{"type":"string"}}}}}},"responses":{"200":{"description":"The updated project template"},"400":{"description":"A value is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Crud"]}},"/data/entity-types":{"post":{"summary":"Create an entity type","description":"Create an entity type. Send the fields of the new row in JSON. The name must be unique. The check does not make a difference between upper case and lower case. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Character"},"short_name":{"type":"string","example":"char"},"description":{"type":"string","example":"Characters of the show"},"archived":{"type":"boolean","example":false},"task_types":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types of the entity type"}}}}}},"responses":{"201":{"description":"The new entity type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Character"},"short_name":{"type":"string","example":"char"},"description":{"type":"string","example":"Characters of the show"},"archived":{"type":"boolean","example":false},"task_types":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entity-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Character\",\n  \"color\": \"#FF5733\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Character\",\n    \"color\": \"#FF5733\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get entity type rows","description":"Get the entity type rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All signed-in users can read them.","responses":{"200":{"description":"The list of entity type rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You cannot read these rows"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entity-types?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entity-types/{instance_id}":{"get":{"summary":"Get an entity type","description":"Get an entity type. All signed-in users can read it.","responses":{"200":{"description":"The entity type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Character"},"short_name":{"type":"string","example":"char"},"description":{"type":"string","example":"Characters of the show"},"archived":{"type":"boolean","example":false},"task_types":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You cannot read this entity type"},"404":{"description":"The entity type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity type"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entity-types/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an entity type","description":"Delete an entity type. You must be an administrator.","responses":{"204":{"description":"The entity type is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The entity type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity type"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/entity-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an entity type","description":"Update the fields of an entity type. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Character"},"short_name":{"type":"string","example":"char"},"description":{"type":"string","example":"Characters of the show"},"archived":{"type":"boolean","example":false},"task_types":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types of the entity type"}}}}}},"responses":{"200":{"description":"The updated entity type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Character"},"short_name":{"type":"string","example":"char"},"description":{"type":"string","example":"Characters of the show"},"archived":{"type":"boolean","example":false},"task_types":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The entity type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity type"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/entity-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Character\",\n  \"color\": \"#FF5734\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Character\",\n    \"color\": \"#FF5734\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities":{"post":{"summary":"Create an entity","description":"Create an entity. Send the fields of the new row in JSON. You must be an administrator or a manager of the project. You become the creator of the entity. The status must be a valid entity status.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","project_id","entity_type_id"],"properties":{"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","example":"running"},"data":{"type":"object","example":{"frame_in":1001,"frame_out":1120}}}}}}},"responses":{"201":{"description":"The new entity","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","example":"running"},"data":{"type":"object","example":{"frame_in":1001,"frame_out":1120}},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The status is not valid, the body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager of the project"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entities\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"SH010\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_type_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"status\": \"running\",\n  \"data\": {\n    \"frame_in\": 1001,\n    \"frame_out\": 1120\n  }\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"SH010\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_type_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"status\": \"running\",\n    \"data\": {\n        \"frame_in\": 1001,\n        \"frame_out\": 1120\n    }\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get entity rows","description":"Get the entity rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. An administrator gets all the entities. Other users get the entities of the open projects where they are in the team. On a project where you are a vendor, you get only the entities with a task assigned to you. The role held on the project team applies. Each row has a type field, for example Asset or Shot.","responses":{"200":{"description":"The list of entity rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{instance_id}":{"get":{"summary":"Get an entity","description":"Get an entity. You must have access to its project. A vendor must also have a task on the entity. The response has a type field, for example Asset or Shot.","responses":{"200":{"description":"The entity","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","example":"running"},"data":{"type":"object","example":{"frame_in":1001,"frame_out":1120}},"type":{"type":"string","example":"shot"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You do not have access to the project, or you are a vendor without a task on the entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an entity","description":"Delete an entity. An administrator, a manager of the project or the creator of the entity can delete it. The creator must be in the project team. The links of the entity are deleted too. You cannot delete an entity that has tasks, versions or child entities.","responses":{"204":{"description":"The entity is deleted"},"400":{"description":"Tasks, versions, child entities or other data use this entity"},"403":{"description":"You are not a manager of the project or the creator of the entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an entity","description":"Update the fields of an entity. An entity is an asset, a shot, a sequence, an episode, an edit or a concept. Send only the fields to change. You cannot change id, created_at, updated_at, project_id, type, instance_casting, entities_in, entities_out, shotgun_id and created_by. An administrator, a manager of the project or the creator of the entity can change the other fields. The creator must be in the team of the project. A supervisor of the project with a department can change only the data field of an asset, a shot or an edit. Each key must be a metadata descriptor of one of their departments. A key that is not a descriptor of their departments refuses the whole update. A supervisor without a department can change the data field of every entity. The data field is merged with the current data. The name must be unique for the project, the type and the parent. When the frames or the name of a shot change, a new version of the shot is saved. Changes of one person that are less than one minute apart update the same version, for five minutes at most.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"SH010"},"data":{"type":"object","example":{"frame_in":1001,"frame_out":1120}}}}}}},"responses":{"200":{"description":"The updated entity","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"data":{"type":"object","example":{"frame_in":1001,"frame_out":1120}}}}}}},"400":{"description":"The body is not valid, the status is not valid, or another entity has the same name, type and parent in the project"},"403":{"description":"You are not in the team of the project, or your role cannot change these fields"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"SH010\",\n  \"data\": {\n    \"frame_in\": 1001,\n    \"frame_out\": 1120\n  }\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"SH010\",\n    \"data\": {\n        \"frame_in\": 1001,\n        \"frame_out\": 1120\n    }\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/task-types":{"post":{"summary":"Create a task type","description":"Create a task type. Send the fields of the new row in JSON. The name must be unique. The check does not make a difference between upper case and lower case. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Animation"},"for_entity":{"type":"string","description":"Kind of entity, Asset by default","default":"Asset","example":"Shot"},"color":{"type":"string","example":"#FF5733"}}}}}},"responses":{"201":{"description":"The new task type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"},"for_entity":{"type":"string","example":"Shot"},"color":{"type":"string","example":"#FF5733"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, a task type with a similar name exists, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Animation\",\n  \"for_entity\": \"Shot\",\n  \"color\": \"#FF5733\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Animation\",\n    \"for_entity\": \"Shot\",\n    \"color\": \"#FF5733\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get task type rows","description":"Get the task type rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read them.","responses":{"200":{"description":"The list of task type rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/task-types?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/task-types/reorder":{"post":{"summary":"Reorder the task types","description":"Set the priority of all the task types in one request. The order of the list gives the priority, from 1. The identifiers that are not task types are skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_ids"],"properties":{"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types in the new order"}}}}}},"responses":{"200":{"description":"The updated task types"},"400":{"description":"The body does not have a task_type_ids list"},"403":{"description":"You are not an administrator"}},"tags":["Crud"]}},"/data/task-types/{instance_id}":{"get":{"summary":"Get a task type","description":"Get a task type. All users can read it.","responses":{"200":{"description":"The task type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"},"for_entity":{"type":"string","example":"Shot"},"color":{"type":"string","example":"#FF5733"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The task type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/task-types/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a task type","description":"Delete a task type. If schedule items or projects use the task type, the request fails. With force=true, the schedule items of the task type are deleted and the task type is removed from the projects. If status automations use the task type, archived ones included, the request fails even with force=true. You must be an administrator.","responses":{"204":{"description":"The task type is deleted"},"400":{"description":"Schedule items, projects or status automations use the task type, or other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The task type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Delete the schedule items of the task type and remove it from the projects"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/task-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a task type","description":"Update the fields of a task type. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. A new name must be unique. The check does not make a difference between upper case and lower case. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Animation"},"color":{"type":"string","example":"#FF5734"}}}}}},"responses":{"200":{"description":"The updated task type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Animation"},"for_entity":{"type":"string","example":"Shot"},"color":{"type":"string","example":"#FF5734"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The task type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/task-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Animation\",\n  \"color\": \"#FF5734\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Animation\",\n    \"color\": \"#FF5734\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/task-type-links":{"post":{"summary":"Add a task type to a project","description":"Add a task type to a project, with its priority in the project. If the task type is already in the project, the route updates its priority. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","task_type_id"],"properties":{"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"priority":{"type":"integer","default":1,"example":1,"description":"Priority of the task type in the project"}}}}}},"responses":{"201":{"description":"The new link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"priority":{"type":"integer","example":1}}}}}},"400":{"description":"project_id or task_type_id is missing or not a valid UUID"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/task-type-links\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"priority\": 1\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-type-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"priority\": 1\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-type-links/reorder":{"post":{"summary":"Reorder the task types of a project","description":"Set the priority of the task types of a project in one request. The order of the list gives the priority. The identifiers that are not task types of the project are skipped. The response has only the updated links. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_ids"],"properties":{"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types of the project in the new order"}}}}}},"responses":{"200":{"description":"The updated links"},"400":{"description":"The body does not have a valid task_type_ids list"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Crud"]}},"/data/task-status":{"post":{"summary":"Create a task status","description":"Create a task status. Send the fields of the new row in JSON. If is_default is true, the previous default status stops being the default. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","example":"To Do"},"short_name":{"type":"string","example":"TODO"},"color":{"type":"string","example":"#FF5733"},"is_default":{"type":"boolean","default":false,"example":false}}}}}},"responses":{"201":{"description":"The new task status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"To Do"},"short_name":{"type":"string","example":"TODO"},"color":{"type":"string","example":"#FF5733"},"is_default":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/task-status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"To Do\",\n  \"short_name\": \"TODO\",\n  \"color\": \"#FF5733\",\n  \"is_default\": false\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"To Do\",\n    \"short_name\": \"TODO\",\n    \"color\": \"#FF5733\",\n    \"is_default\": false\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get task status rows","description":"Get the task status rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read them.","responses":{"200":{"description":"The list of task status rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/task-status?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/task-status/{instance_id}":{"get":{"summary":"Get a task status","description":"Get a task status. All users can read it.","responses":{"200":{"description":"The task status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"To Do"},"short_name":{"type":"string","example":"TODO"},"color":{"type":"string","example":"#FF5733"},"is_default":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The task status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task status"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/task-status/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a task status","description":"Delete a task status. If status automations use the task status, archived ones included, the request fails. You must be an administrator.","responses":{"204":{"description":"The task status is deleted"},"400":{"description":"Status automations use the task status, or other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The task status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task status"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/task-status/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a task status","description":"Update the fields of a task status. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. If is_default is true, the previous default status stops being the default. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"In Progress"},"short_name":{"type":"string","example":"WIP"},"color":{"type":"string","example":"#00FF00"},"is_default":{"type":"boolean","example":true}}}}}},"responses":{"200":{"description":"The updated task status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"In Progress"},"short_name":{"type":"string","example":"WIP"},"color":{"type":"string","example":"#00FF00"},"is_default":{"type":"boolean","example":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The task status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task status"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/task-status/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"In Progress\",\n  \"short_name\": \"WIP\",\n  \"color\": \"#00FF00\",\n  \"is_default\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"In Progress\",\n    \"short_name\": \"WIP\",\n    \"color\": \"#00FF00\",\n    \"is_default\": true\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/task-status-links":{"post":{"summary":"Add a task status to a project","description":"Add a task status to a project, with its priority and the roles that see it on the board. If the task status is already in the project, the route replaces its priority and its board roles. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","task_status_id"],"properties":{"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"priority":{"type":"integer","default":1,"example":1,"description":"Priority of the task status in the project"},"roles_for_board":{"type":"array","items":{"type":"string"},"example":["admin","manager"],"description":"Roles allowed to see this status on the board"}}}}}},"responses":{"201":{"description":"The new link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"priority":{"type":"integer","example":1},"roles_for_board":{"type":"array","items":{"type":"string"},"example":["admin","manager"]}}}}}},"400":{"description":"The project or the task status is missing"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/task-status-links\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"priority\": 1,\n  \"roles_for_board\": [\n    \"admin\",\n    \"manager\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/task-status-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"priority\": 1,\n    \"roles_for_board\": [\n        \"admin\",\n        \"manager\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-status-links/reorder":{"post":{"summary":"Reorder the task statuses of a project","description":"Set the priority of the task statuses of a project in one request. The order of the list gives the priority. The board roles of each link do not change. The identifiers that are not task statuses of the project are skipped. The response has only the updated links. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_status_ids"],"properties":{"task_status_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task statuses of the project in the new order"}}}}}},"responses":{"200":{"description":"The updated links"},"400":{"description":"The body does not have a valid task_status_ids list"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Crud"]}},"/data/tasks":{"post":{"summary":"Create a task","description":"Create a task for an entity. Give task_type_id and entity_id. The task type must be for the type of the entity. The default name is main. You can give assignees, a list of person identifiers. A bot made for previews cannot be an assignee. You must be an administrator or a manager of the project of the entity. The task gets the project of the entity. The route ignores the project_id of the body.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_id","entity_id"],"properties":{"task_type_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"responses":{"201":{"description":"The new task, with its related data","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"400":{"description":"An identifier is missing or not valid, assignees is not a list, the task type is not for this entity, or the task already exists"},"403":{"description":"You are not a manager of the project of the entity"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"assignees\": [\n    \"c24a6ea4-ce75-4665-a070-57453082c25\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"assignees\": [\n        \"c24a6ea4-ce75-4665-a070-57453082c25\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get task rows","description":"Get the task rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. Add episode_id to get the tasks of the shots of this episode. An administrator gets all the tasks. Other users get the tasks of the open projects of their team. On a project where you are a vendor, you get only the tasks assigned to you. On a project where you are a client, the studio fields are blank, for example assignees, duration, estimation and dates. The role held on the project team applies.","responses":{"200":{"description":"The list of task rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Filter tasks by episode ID"},{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks?page=1&limit=50&relations=false&episode_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false,\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{instance_id}":{"get":{"summary":"Get a task","description":"Get a task. You must be an administrator or a member of the project team. A vendor must also have a task assigned on the entity of the task. A client gets the studio fields blank, for example assignees, duration, estimation and dates.","responses":{"200":{"description":"The task","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the project team, or you are a vendor without a task on this entity"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a task","description":"Delete a task. Without force, the task is deleted only if it has no comments and no files. With force=true, the comments, previews and files of the task are deleted too. If the entity showed a preview of this task, the entity gets the newest preview of its other tasks. You must be a manager of the project.","responses":{"204":{"description":"The task is deleted"},"400":{"description":"The task has comments or files"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Delete the comments, previews and files of the task too"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a task","description":"Update the fields of a task. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. You must be an administrator or a manager of the project. A supervisor of the project can change only priority, start_date, due_date, estimation, difficulty and data. A supervisor must send only these fields. Any other field in the body, including id and project_id, gives 403. The task type must also be in the departments of the supervisor, if they have departments. The data field merges into the current metadata. A bot made for previews cannot be an assignee. A change of assignees sends task:assign and task:unassign events and notifies the new assignees.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"task_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"oneOf":[{"type":"string","format":"uuid"},{"type":"object","properties":{"id":{"type":"string","format":"uuid"}}}]},"description":"List of person identifiers, or of objects with an id","example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"duration":{"type":"number","example":8.5}}}}}},"responses":{"200":{"description":"The updated task","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]},"duration":{"type":"number","example":8.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager of the project, or you are a supervisor and you change a field or a task type that you cannot change"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"assignees\": [\n    \"c24a6ea4-ce75-4665-a070-57453082c25\"\n  ],\n  \"duration\": 8.5\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"assignees\": [\n        \"c24a6ea4-ce75-4665-a070-57453082c25\"\n    ],\n    \"duration\": 8.5\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments":{"post":{"summary":"Create a department","description":"Create a department. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","example":"Animation"},"color":{"type":"string","description":"Color in the #RRGGBB format","example":"#FF5733"},"archived":{"type":"boolean","default":false,"example":false}}}}}},"responses":{"201":{"description":"The new department","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"},"color":{"type":"string","example":"#FF5733"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/departments\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Animation\",\n  \"color\": \"#FF5733\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Animation\",\n    \"color\": \"#FF5733\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get department rows","description":"Get the department rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read the departments.","responses":{"200":{"description":"The list of department rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/departments?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/{instance_id}":{"get":{"summary":"Get a department","description":"Get a department. All users can read the departments.","responses":{"200":{"description":"The department","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"},"color":{"type":"string","example":"#FF5733"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The department does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a department","description":"Delete a department. You must be an administrator.","responses":{"204":{"description":"The department is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The department does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a department","description":"Update the fields of a department. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Animation"},"color":{"type":"string","example":"#FF5734"}}}}}},"responses":{"200":{"description":"The updated department","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Animation"},"color":{"type":"string","example":"#FF5734"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The department does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Animation\",\n  \"color\": \"#FF5734\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Animation\",\n    \"color\": \"#FF5734\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/organisations":{"post":{"summary":"Create an organisation","description":"Create an organisation. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Studio Name"},"hours_by_day":{"type":"number","example":8.0}}}}}},"responses":{"201":{"description":"The new organisation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Studio Name"},"hours_by_day":{"type":"number","example":8.0},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/organisations\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Studio Name\",\n  \"hours_by_day\": 8\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/organisations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Studio Name\",\n    \"hours_by_day\": 8\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get organisation rows","description":"Get the organisation rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All signed-in users can read them. If you are not an administrator, you do not get the chat tokens and webhooks (chat_token_slack, chat_webhook_mattermost, chat_token_discord). You cannot filter on these fields either.","responses":{"200":{"description":"The list of organisation rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/organisations?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/organisations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/organisations/{instance_id}":{"get":{"summary":"Get an organisation","description":"Get an organisation. All signed-in users can read it. If you are not an administrator, you do not get the chat tokens and webhooks (chat_token_slack, chat_webhook_mattermost, chat_token_discord).","responses":{"200":{"description":"The organisation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Studio Name"},"hours_by_day":{"type":"number","example":8.0},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The organisation does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the organisation"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/organisations/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/organisations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an organisation","description":"Delete an organisation. You must be an administrator.","responses":{"204":{"description":"The organisation is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The organisation does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the organisation"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/organisations/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/organisations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an organisation","description":"Update the fields of an organisation. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. hours_by_day must be a number. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Studio Name"},"hours_by_day":{"type":"number","example":7.5}}}}}},"responses":{"200":{"description":"The updated organisation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Studio Name"},"hours_by_day":{"type":"number","example":7.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The organisation does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the organisation"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/organisations/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Studio Name\",\n  \"hours_by_day\": 7.5\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/organisations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Studio Name\",\n    \"hours_by_day\": 7.5\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/file-status":{"post":{"summary":"Create a file status","description":"Create a file status. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","example":"Approved"},"color":{"type":"string","description":"Color in the #RRGGBB format","example":"#00FF00"}}}}}},"responses":{"201":{"description":"The new file status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Approved"},"color":{"type":"string","example":"#00FF00"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/file-status/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Approved\",\n  \"color\": \"#00FF00\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/file-status/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Approved\",\n    \"color\": \"#00FF00\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get file status rows","description":"Get the file status rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All signed-in users can read them.","responses":{"200":{"description":"The list of file status rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You cannot read these rows"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/file-status/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/file-status/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/file-status/{instance_id}":{"get":{"summary":"Get a file status","description":"Get a file status. All signed-in users can read it.","responses":{"200":{"description":"The file status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Approved"},"color":{"type":"string","example":"#00FF00"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You cannot read this file status"},"404":{"description":"The file status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the file status"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/file-status/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/file-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a file status","description":"Delete a file status. You must be an administrator.","responses":{"204":{"description":"The file status is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The file status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the file status"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/file-status/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/file-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a file status","description":"Update the fields of a file status. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Rejected"},"color":{"type":"string","example":"#FF0000"}}}}}},"responses":{"200":{"description":"The updated file status","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Rejected"},"color":{"type":"string","example":"#FF0000"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The file status does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the file status"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/file-status/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Rejected\",\n  \"color\": \"#FF0000\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/file-status/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Rejected\",\n    \"color\": \"#FF0000\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/softwares":{"post":{"summary":"Create model","description":"Create a new model instance with data provided in the request body. JSON format is expected. The model performs validation automatically when instantiated. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Model Name"}}}}}},"responses":{"201":{"description":"Model created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/softwares\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/softwares\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Model Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get models","description":"Retrieve all entries for the given model. Supports filtering via query parameters and pagination. Unless the model says otherwise, you must be an administrator.","responses":{"200":{"description":"Models retrieved successfully","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"Invalid filter format or query error"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"example":1,"description":"Page number for pagination"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer"},"example":50,"description":"Number of results per page"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Whether to include relations"},{"in":"query","name":"fields","required":false,"schema":{"type":"string"},"example":"first_name,last_name","description":"Comma-separated list of attributes to return for each entry (id and type are always included). Unknown names are ignored."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/softwares?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/softwares\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/softwares/{instance_id}":{"get":{"summary":"Get a software","description":"Get a software. All users can read it.","responses":{"200":{"description":"The software","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Maya"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"404":{"description":"The software does not exist, or the identifier is not valid"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the software"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/softwares/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/softwares/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete model","description":"Delete a model instance by its ID. Returns empty response on success. Unless the model says otherwise, you must be an administrator.","responses":{"204":{"description":"Model deleted successfully"},"400":{"description":"Integrity error or cannot delete"},"403":{"description":"You are not an administrator"},"404":{"description":"The row does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/softwares/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/softwares/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update model","description":"Update a model instance with data provided in the request body. JSON format is expected. Model performs validation automatically when fields are modified. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Model Name"}}}}}},"responses":{"200":{"description":"Model updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"},"404":{"description":"The row does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/softwares/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/softwares/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Model Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/hardware-items":{"post":{"summary":"Create a hardware item","description":"Create a hardware item. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","short_name"],"properties":{"name":{"type":"string","example":"Workstation 01"},"short_name":{"type":"string","example":"WS01"},"monthly_cost":{"type":"integer","description":"Monthly cost of the item"},"inventory_amount":{"type":"integer","description":"Number of items in the inventory"}}}}}},"responses":{"201":{"description":"The new hardware item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Workstation 01"},"short_name":{"type":"string","example":"WS01"},"archived":{"type":"boolean","example":false},"monthly_cost":{"type":"integer","example":50},"inventory_amount":{"type":"integer","example":3},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/hardware-items\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Workstation 01\",\n  \"serial_number\": \"SN123456\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/hardware-items\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Workstation 01\",\n    \"serial_number\": \"SN123456\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get hardware item rows","description":"Get the hardware item rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of hardware item rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/hardware-items?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/hardware-items\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/hardware-items/{instance_id}":{"get":{"summary":"Get a hardware item","description":"Get a hardware item. You must be an administrator.","responses":{"200":{"description":"The hardware item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Workstation 01"},"short_name":{"type":"string","example":"WS01"},"archived":{"type":"boolean","example":false},"monthly_cost":{"type":"integer","example":50},"inventory_amount":{"type":"integer","example":3},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The hardware item does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the hardware item"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/hardware-items/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/hardware-items/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a hardware item","description":"Delete a hardware item. You must be an administrator.","responses":{"204":{"description":"The hardware item is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The hardware item does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the hardware item"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/hardware-items/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/hardware-items/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a hardware item","description":"Update the fields of a hardware item. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Workstation 01"},"short_name":{"type":"string","example":"WS01"},"archived":{"type":"boolean","example":false},"monthly_cost":{"type":"integer","description":"Monthly cost of the item"},"inventory_amount":{"type":"integer","description":"Number of items in the inventory"}}}}}},"responses":{"200":{"description":"The updated hardware item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Workstation 01"},"short_name":{"type":"string","example":"WS01"},"archived":{"type":"boolean","example":false},"monthly_cost":{"type":"integer","example":50},"inventory_amount":{"type":"integer","example":3},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The hardware item does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the hardware item"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/hardware-items/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Workstation 01\",\n  \"serial_number\": \"SN123457\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/hardware-items/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Workstation 01\",\n    \"serial_number\": \"SN123457\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/output-files":{"post":{"summary":"Create model","description":"Create a new model instance with data provided in the request body. JSON format is expected. The model performs validation automatically when instantiated. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Model Name"}}}}}},"responses":{"201":{"description":"Model created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/output-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Model Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get output files","description":"Get the output files. Add a query parameter for each column to filter on, for example entity_id=<id>. To get the rows that have one value of a list, give the list in JSON, for example output_type_id=[\"<id1>\",\"<id2>\"]. An administrator gets every output file, anybody else the ones of the projects they belong to. You get no output file of a project where you are a vendor. The role held on the project team applies.","responses":{"200":{"description":"The list of output files, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/output-files?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/output-files/{instance_id}":{"get":{"summary":"Get an output file","description":"Get an output file. You must be in the team of the project of its entity. A vendor must also be assigned to a task of the entity.","responses":{"200":{"description":"The output file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"output_file_v001"},"entity_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not valid"},"403":{"description":"You are not in the team of the project, or you are a vendor with no task on the entity"},"404":{"description":"The output file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the output file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/output-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an output file","description":"Delete an output file. You must be an administrator.","responses":{"204":{"description":"The output file is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The output file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the output file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/output-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an output file","description":"Update the fields of an output file. Send only the fields to change. You cannot change id, created_at, updated_at. You must be a manager of the project of its entity, or work on a task of the entity.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"output_file_v002"},"revision":{"type":"integer","example":2},"quality":{"type":"string","example":"high"},"path":{"type":"string","example":"/shots/sh010/lighting/output_file_v002.exr"}}}}}},"responses":{"200":{"description":"The updated output file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"output_file_v002"},"entity_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or the quality is unknown"},"403":{"description":"You are not a manager of the project and you do not work on the entity"},"404":{"description":"The output file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the output file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/output-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Model Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/output-types":{"post":{"summary":"Create model","description":"Create a new model instance with data provided in the request body. JSON format is expected. The model performs validation automatically when instantiated. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Model Name"}}}}}},"responses":{"201":{"description":"Model created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/output-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Model Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get models","description":"Retrieve all entries for the given model. Supports filtering via query parameters and pagination. Unless the model says otherwise, you must be an administrator.","responses":{"200":{"description":"Models retrieved successfully","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"Invalid filter format or query error"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"example":1,"description":"Page number for pagination"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer"},"example":50,"description":"Number of results per page"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Whether to include relations"},{"in":"query","name":"fields","required":false,"schema":{"type":"string"},"example":"first_name,last_name","description":"Comma-separated list of attributes to return for each entry (id and type are always included). Unknown names are ignored."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/output-types?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/output-types/{instance_id}":{"get":{"summary":"Get an output type","description":"Get an output type. All users can read output types.","responses":{"200":{"description":"The output type","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Image"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not valid"},"404":{"description":"The output type does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the output type"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/output-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete model","description":"Delete a model instance by its ID. Returns empty response on success. Unless the model says otherwise, you must be an administrator.","responses":{"204":{"description":"Model deleted successfully"},"400":{"description":"Integrity error or cannot delete"},"403":{"description":"You are not an administrator"},"404":{"description":"The row does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/output-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update model","description":"Update a model instance with data provided in the request body. JSON format is expected. Model performs validation automatically when fields are modified. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Model Name"}}}}}},"responses":{"200":{"description":"Model updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"},"404":{"description":"The row does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/output-types/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/output-types/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Model Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/preview-files":{"post":{"summary":"Create a preview file","description":"Create a preview file. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","task_id"],"properties":{"name":{"type":"string","example":"preview_file_v001"},"task_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","default":1,"example":1}}}}}},"responses":{"201":{"description":"The new preview file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"preview_file_v001"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":1},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"preview_file_v001\",\n  \"task_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"revision\": 1\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"preview_file_v001\",\n    \"task_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"revision\": 1\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get preview file rows","description":"Get the preview file rows. All users can call this route. An administrator gets all the preview files. The other users get only the preview files of the tasks of open projects. A vendor gets only the preview files of the tasks assigned to them. The other users get only the preview files of the projects of their teams. Give project_id to get the preview files of one project. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of preview file rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid, or project_id is not a valid UUID"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}},{"in":"query","name":"project_id","required":false,"description":"Keep only the preview files of the tasks of this project.","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/preview-files?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/preview-files/{instance_id}":{"get":{"summary":"Get a preview file","description":"Get a preview file. You must be in the team of the project of its task, or an administrator. On this project, a vendor must also be assigned to the task.","responses":{"200":{"description":"The preview file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"preview_file_v001"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":1},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the team of the project, or you are a vendor and the task is not assigned to you"},"404":{"description":"The preview file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview file"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/preview-files/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a preview file","description":"Delete a preview file. Its files in the storage are marked as deleted. The files are removed from the storage if REMOVE_FILES is set, or if you give force=true. If the task showed this preview, the task gets its previous preview. If the entity showed this preview and the project sets the entity preview automatically, the entity gets the newest preview of its tasks. Otherwise the entity has no preview. You must be an administrator, or a manager in the team of the project.","responses":{"204":{"description":"The preview file is deleted"},"400":{"description":"The identifier is not valid, or other data uses the preview file"},"403":{"description":"You are not an administrator or a manager in the team of the project"},"404":{"description":"The preview file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview file"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Remove the files from the storage, even if REMOVE_FILES is not set"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/preview-files/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a preview file","description":"Update the fields of a preview file. Send only the fields to change. You must be in the team of the project of its task, or an administrator. If you are not a manager, the task must be assigned to you, or you must be a supervisor in the team with the department of the task type, or with no department. You cannot change id, created_at, updated_at and task_id. For a main preview (position 1), the new revision must be unique for the task. The extra previews of the same revision get the new revision too. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"updated_preview_file_v001"},"revision":{"type":"integer","example":2}}}}}},"responses":{"200":{"description":"The updated preview file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"updated_preview_file_v001"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":2},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not in the team of the project, or you are not a manager, the task is not assigned to you and you are not a supervisor of the task type"},"404":{"description":"The preview file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"updated_preview_file_v001\",\n  \"revision\": 2\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"updated_preview_file_v001\",\n    \"revision\": 2\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/working-files":{"post":{"summary":"Create a working file","description":"Create a working file. Send the fields of the new row in JSON. The validation_status must be validated, rejected or neutral. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","task_id","entity_id"],"properties":{"name":{"type":"string","example":"work_file_v001"},"task_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","default":1,"example":1}}}}}},"responses":{"201":{"description":"The new working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"work_file_v001"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":1},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/working-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"work_file_v001\",\n  \"task_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"revision\": 1\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"work_file_v001\",\n    \"task_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"revision\": 1\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get working file rows","description":"Get the working file rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read them, except vendors. An administrator gets all the rows. Other users get the working files of the projects of their team, open or closed.","responses":{"200":{"description":"The list of working file rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a vendor"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/working-files?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/working-files/{instance_id}":{"get":{"summary":"Get a working file","description":"Get a working file. You must be an administrator or a member of the project team of the task. A vendor must also have a task assigned on the entity of the task.","responses":{"200":{"description":"The working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"work_file_v001"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"403":{"description":"You are not in the project team, or you are a vendor without a task on this entity"},"404":{"description":"The working file does not exist, or the identifier is not valid"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the working file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a working file","description":"Delete a working file. You must be an administrator.","responses":{"204":{"description":"The working file is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The working file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the working file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a working file","description":"Update the fields of a working file. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. The validation_status must be validated, rejected or neutral. You must be an administrator, or a manager of the project. Other members of the project can change it if they are an assignee of the task or the creator of the entity. A supervisor of the project can also change it if they have no department, or if the task type is in one of their departments. A client of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"updated_work_file_v001"},"revision":{"type":"integer","example":2},"validation_status":{"type":"string","enum":["neutral","validated","rejected"],"example":"validated"}}}}}},"responses":{"200":{"description":"The updated working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"updated_work_file_v001"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":2},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You cannot act on the task of this working file"},"404":{"description":"The working file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the working file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"updated_work_file_v001\",\n  \"revision\": 2\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"updated_work_file_v001\",\n    \"revision\": 2\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/attachment-files":{"post":{"summary":"Create an attachment file","description":"Create an attachment file. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"attachment.pdf"},"comment_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new attachment file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"attachment.pdf"},"comment_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/attachment-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"attachment.pdf\",\n  \"comment_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/attachment-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"attachment.pdf\",\n    \"comment_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get attachment file rows","description":"Get the attachment file rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of attachment file rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/attachment-files?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/attachment-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/attachment-files/{instance_id}":{"get":{"summary":"Get an attachment file","description":"Get an attachment file. For the file of a comment, you must be able to read the comment. You must have access to the project of its task. A vendor must also have a task on the entity. A client reads only the files of the comments they can see. For the file of a chat message, you must have access to the project of the entity. A client cannot read it, and a vendor must have a task on the entity. You cannot read a file that has no comment and no chat message, even as an administrator.","responses":{"200":{"description":"The attachment file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"attachment.pdf"},"comment_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You do not have access to the task or the chat of the file, or the file has no comment and no chat message"},"404":{"description":"The attachment file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the attachment file"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an attachment file","description":"Delete an attachment file. You must be an administrator.","responses":{"204":{"description":"The attachment file is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The attachment file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the attachment file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an attachment file","description":"Update the fields of an attachment file. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"updated_attachment.pdf"}}}}}},"responses":{"200":{"description":"The updated attachment file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"updated_attachment.pdf"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The attachment file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the attachment file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"updated_attachment.pdf\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"updated_attachment.pdf\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/comments":{"post":{"summary":"Create a comment","description":"Create a comment. Send the fields of the new row in JSON. You must be an administrator. object_type is the type of the object, for example Task. task_status_id is optional.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["object_id","object_type","person_id"],"properties":{"object_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_type":{"type":"string","example":"Task"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Comment text"}}}}}},"responses":{"201":{"description":"The new comment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Comment text"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/comments\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"object_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_status_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\",\n  \"text\": \"Comment text\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/comments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"object_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\",\n    \"text\": \"Comment text\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get comment rows","description":"Get the comment rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of comment rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/comments?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/comments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/comments/{instance_id}":{"get":{"summary":"Get a comment","description":"Get a comment. The response gives the author in person, the reply authors and the attachment files as objects. Set with_previews to true to get the previews as objects. An administrator can read all the comments. Other users must have access to the project of the task. A vendor must also have a task on the entity. Managers and supervisors read all the comments of the task. A client reads the comments of clients and the comments for clients. If the project isolates the clients, a client reads only their own comments and the comments for clients. Other users cannot read the comments of clients.","responses":{"200":{"description":"The comment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Comment text"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You do not have access to the project or the entity, or your role cannot read this comment"},"404":{"description":"The comment does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."},{"in":"query","name":"with_previews","required":false,"schema":{"type":"boolean","default":false},"example":true,"description":"Whether to expand preview IDs to full preview objects"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/comments/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/comments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a comment","description":"Delete a comment. After the deletion, the task gets the status and the data of its last comment. An administrator or a manager of the project can delete all the comments of the project. You can always delete your own comments, also if you are not in the team. Other users cannot delete the comments of other persons.","responses":{"204":{"description":"The comment is deleted"},"400":{"description":"Cannot delete comment or integrity error"},"403":{"description":"You are not a manager of the project, and the comment is not yours"},"404":{"description":"The comment does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/comments/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/comments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a comment","description":"Update the fields of a comment. Send only the fields to change. You cannot change id, created_at, updated_at, object_id, mentions and department_mentions. Dates use the ISO 8601 format. The mentions are computed again from the text. You become the editor of the comment. An administrator can change all the fields. Other users must be in the team of the project. A manager of the project can change all the fields. Other users must be able to read the comment and cannot change for_client. Only the author can change the fields other than pinned and checklist. Only a supervisor of the department of the task type, or without a department, can change pinned. Only the author, an assignee of the task or such a supervisor can change checklist. You cannot give the comment to another person or move it to another task. To change task_status_id, you must have action access to the task and access to the status. A status change resets the task data.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","example":"Updated comment text"},"task_status_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"pinned":{"type":"boolean","example":true},"checklist":{"type":"array","items":{"type":"object"},"example":[{"text":"Item 1","checked":false}]}}}}}},"responses":{"200":{"description":"The updated comment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Updated comment text"},"pinned":{"type":"boolean","example":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not in the team of the project, or your role cannot change these fields"},"404":{"description":"The comment does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/comments/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"text\": \"Updated comment text\",\n  \"task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"pinned\": true,\n  \"checklist\": [\n    {\n      \"text\": \"Item 1\",\n      \"checked\": false\n    }\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/comments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"text\": \"Updated comment text\",\n    \"task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"pinned\": true,\n    \"checklist\": [\n        {\n            \"text\": \"Item 1\",\n            \"checked\": false\n        }\n    ]\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/time-spents":{"post":{"summary":"Create a time spent","description":"Create a time spent. Send the fields of the new row in JSON. The task duration becomes the sum of its time spents. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_id","person_id","date","duration"],"properties":{"task_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-15"},"duration":{"type":"number","example":8.5}}}}}},"responses":{"201":{"description":"The new time spent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-15"},"duration":{"type":"number","example":8.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/time-spents/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"date\": \"2024-01-15\",\n  \"duration\": 8.5\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/time-spents/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"date\": \"2024-01-15\",\n    \"duration\": 8.5\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get time spent rows","description":"Get the time spent rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. To get a range of dates, give both start_date and end_date. You must be an administrator.","responses":{"200":{"description":"The list of time spent rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"example":"2024-01-01","description":"Start date for date range filter"},{"in":"query","name":"end_date","required":false,"schema":{"type":"string","format":"date"},"example":"2024-01-31","description":"End date for date range filter"},{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/time-spents/?page=1&limit=50&relations=false&start_date=2024-01-01&end_date=2024-01-31\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/time-spents/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false,\n    \"start_date\": \"2024-01-01\",\n    \"end_date\": \"2024-01-31\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/time-spents/{instance_id}":{"get":{"summary":"Get a time spent","description":"Get a time spent. You must be an administrator.","responses":{"200":{"description":"The time spent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-15"},"duration":{"type":"number","example":8.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The time spent does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the time spent"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/time-spents/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/time-spents/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a time spent","description":"Delete a time spent. The task duration becomes the sum of its time spents. An administrator can delete all the time spents. For other users, the person of the time spent must be an assignee of the task. Then you must be this person or a manager of the project.","responses":{"204":{"description":"The time spent is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"The person is not an assignee of the task, or you are not this person or a manager of the project"},"404":{"description":"The time spent does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the time spent"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/time-spents/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/time-spents/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a time spent","description":"Update the fields of a time spent. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. The task duration becomes the sum of its time spents. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date","example":"2024-01-16"},"duration":{"type":"number","example":7.5}}}}}},"responses":{"200":{"description":"The updated time spent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-16"},"duration":{"type":"number","example":7.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The time spent does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the time spent"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/time-spents/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"date\": \"2024-01-16\",\n  \"duration\": 7.5\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/time-spents/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"date\": \"2024-01-16\",\n    \"duration\": 7.5\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/day-offs":{"post":{"summary":"Create a day off","description":"Create a day off. Send the fields of the new row in JSON. An administrator can create a day off for all persons. Other users can create a day off for themselves only. The day off must not overlap another day off of the person. The time spent of the person on the days of the day off is deleted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["date","end_date","person_id"],"properties":{"date":{"type":"string","format":"date","example":"2024-01-15"},"end_date":{"type":"string","format":"date","example":"2024-01-20"},"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new day off","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-15"},"end_date":{"type":"string","format":"date","example":"2024-01-20"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The day off overlaps another day off, the body is not valid, or a field breaks a database constraint"},"403":{"description":"The day off is not for you, and you are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/day-offs/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"date\": \"2024-01-15\",\n  \"end_date\": \"2024-01-20\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/day-offs/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"date\": \"2024-01-15\",\n    \"end_date\": \"2024-01-20\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get day off rows","description":"Get the day off rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of day off rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/day-offs/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/day-offs/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/day-offs/{instance_id}":{"get":{"summary":"Get a day off","description":"Get a day off. An administrator and the person of the day off get all the fields. A manager of a production of the person also gets all the fields. A supervisor of such a production gets the day off without the description. The supervisor must have no department, or share a department with the person.","responses":{"200":{"description":"The day off","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-15"},"end_date":{"type":"string","format":"date","example":"2024-01-20"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not the person, an administrator, or a manager or supervisor of a production of the person"},"404":{"description":"The day off does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the day off"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/day-offs/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/day-offs/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a day off","description":"Delete a day off. Only an administrator or the person of the day off can delete it.","responses":{"204":{"description":"The day off is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not the person of the day off or an administrator"},"404":{"description":"The day off does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the day off"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/day-offs/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/day-offs/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a day off","description":"Update the fields of a day off. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. Only an administrator or the person of the day off can update it. Only an administrator can give the day off to another person. The day off must not overlap another day off of the person. The time spent of the person on the days of the day off is deleted.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date","example":"2024-01-16"},"end_date":{"type":"string","format":"date","example":"2024-01-21"}}}}}},"responses":{"200":{"description":"The updated day off","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-01-16"},"end_date":{"type":"string","format":"date","example":"2024-01-21"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The day off overlaps another day off, the body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not the person of the day off or an administrator"},"404":{"description":"The day off does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the day off"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/day-offs/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"date\": \"2024-01-16\",\n  \"end_date\": \"2024-01-21\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/day-offs/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"date\": \"2024-01-16\",\n    \"end_date\": \"2024-01-21\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/custom-actions":{"post":{"summary":"Create a custom action","description":"Create a custom action. Send the fields of the new row in JSON. The name is required. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Custom Action Name"},"url":{"type":"string","description":"URL that the action calls","example":"https://example.com/hook"},"entity_type":{"type":"string","description":"Type of the entities that show the action. The default value is all.","example":"all"},"is_ajax":{"type":"boolean","description":"True if the action sends an AJAX request. The default value is false.","example":false}}}}}},"responses":{"201":{"description":"The new custom action","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Custom Action Name"},"url":{"type":"string","example":"https://example.com/hook"},"entity_type":{"type":"string","example":"all"},"is_ajax":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The name is missing, the body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/custom-actions/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Custom Action Name\",\n  \"url_pattern\": \"/api/actions/{id}\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/custom-actions/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Custom Action Name\",\n    \"url_pattern\": \"/api/actions/{id}\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get custom action rows","description":"Get the custom action rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read the custom actions, except the vendors.","responses":{"200":{"description":"The list of custom action rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a vendor"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/custom-actions/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/custom-actions/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/custom-actions/{instance_id}":{"get":{"summary":"Get a custom action","description":"Get a custom action. You must be an administrator.","responses":{"200":{"description":"The custom action","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Custom Action Name"},"url":{"type":"string","example":"https://example.com/hook"},"entity_type":{"type":"string","example":"all"},"is_ajax":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The custom action does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the custom action"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/custom-actions/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/custom-actions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a custom action","description":"Delete a custom action. You must be an administrator.","responses":{"204":{"description":"The custom action is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The custom action does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the custom action"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/custom-actions/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/custom-actions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a custom action","description":"Update the fields of a custom action. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You cannot set the name to null. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Custom Action Name"},"url":{"type":"string","description":"URL that the action calls","example":"https://example.com/hook"},"entity_type":{"type":"string","description":"Type of the entities that show the action. The default value is all.","example":"all"},"is_ajax":{"type":"boolean","description":"True if the action sends an AJAX request. The default value is false.","example":false}}}}}},"responses":{"200":{"description":"The updated custom action","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Custom Action Name"},"url":{"type":"string","example":"https://example.com/hook"},"entity_type":{"type":"string","example":"all"},"is_ajax":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The name is null, the body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The custom action does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the custom action"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/custom-actions/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Custom Action Name\",\n  \"url_pattern\": \"/api/actions/{id}\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/custom-actions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Custom Action Name\",\n    \"url_pattern\": \"/api/actions/{id}\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/status-automations":{"post":{"summary":"Create a status automation","description":"Create a status automation. Send the fields of the new row in JSON. Give the trigger in in_conditions, or in the deprecated in_task_type_id and in_task_status_id pair. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","anyOf":[{"required":["in_conditions"]},{"required":["in_task_type_id","in_task_status_id"]}],"properties":{"entity_type":{"type":"string","description":"Type of entity of the tasks (asset, shot, sequence, episode or edit). Empty means asset.","default":"asset"},"in_conditions":{"type":"object","description":"Conditions that start the automation. It runs when a comment changes a task status and turns the group from false to true. A condition is met when every task of its task type on the entity has one of its statuses, and a condition on a task type that the entity has no task of is ignored. Each task type appears once and belongs to the entity type. With a status output, the task type that the automation changes cannot be a condition, and a condition on a task type after it in the production never starts the automation: under and it still has to be met, under or it is left out. Other keys are refused.","additionalProperties":false,"required":["operator","conditions"],"properties":{"operator":{"type":"string","enum":["and","or"]},"conditions":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["task_type_id","task_status_ids"],"properties":{"task_type_id":{"type":"string","format":"uuid"},"task_status_ids":{"type":"array","minItems":1,"items":{"type":"string","format":"uuid"}}}}}},"example":{"operator":"and","conditions":[{"task_type_id":"b24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250"]},{"task_type_id":"d24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250","e24a6ea4-ce75-4665-a070-57453082c250"]}]}},"in_task_type_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Task type that starts the automation, with in_task_status_id, when in_conditions is not given.","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"in_task_status_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Task status that starts the automation, see in_task_type_id","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"out_field_type":{"type":"string","enum":["status","ready_for"],"description":"Field that the automation changes. ready_for applies to assets only."},"out_task_type_id":{"type":"string","format":"uuid","description":"Task type that the automation changes","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"out_task_status_id":{"type":"string","format":"uuid","nullable":true,"description":"New task status, null with a ready for output","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"out_only_if_task_status_ids":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"description":"With a status output, the change applies only to a task in one of these statuses. Empty or null means always.","example":[]},"import_last_revision":{"type":"boolean","description":"Copy the last preview to the changed task, from the task of the first condition the entity has with and, from the commented task with or"}}}}}},"responses":{"201":{"description":"The new status automation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_type":{"type":"string","example":"asset"},"in_conditions":{"type":"object","nullable":true,"example":{"operator":"and","conditions":[{"task_type_id":"b24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250"]},{"task_type_id":"d24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250","e24a6ea4-ce75-4665-a070-57453082c250"]}]}},"in_task_type_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Set for a trigger of one condition with one status only","example":null},"in_task_status_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Set for a trigger of one condition with one status only","example":null},"out_field_type":{"type":"string","example":"status"},"out_task_type_id":{"type":"string","format":"uuid","example":"f24a6ea4-ce75-4665-a070-57453082c250"},"out_task_status_id":{"type":"string","format":"uuid","nullable":true,"example":"a34a6ea4-ce75-4665-a070-57453082c250"},"out_only_if_task_status_ids":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"example":null},"import_last_revision":{"type":"boolean","example":false},"archived":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, a field breaks a database constraint, or the automation is not valid, for example \"A trigger needs at least one condition.\", \"Trigger operator must be 'and' or 'or'.\", \"Task type Layout is not a task type of assets.\" or \"Task type Layout appears in two conditions: merge their statuses into one.\""},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/status-automations/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"source_task_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"target_task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"field_name\": \"ready_for\",\n  \"field_value\": \"production\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/status-automations/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"source_task_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"target_task_status_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"field_name\": \"ready_for\",\n    \"field_value\": \"production\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get status automation rows","description":"Get the status automation rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read them, except vendors.","responses":{"200":{"description":"The list of status automation rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a vendor"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/status-automations/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/status-automations/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/status-automations/{instance_id}":{"get":{"summary":"Get a status automation","description":"Get a status automation. You must be an administrator.","responses":{"200":{"description":"The status automation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_type":{"type":"string","example":"asset"},"in_conditions":{"type":"object","nullable":true,"example":{"operator":"and","conditions":[{"task_type_id":"b24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250"]},{"task_type_id":"d24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250","e24a6ea4-ce75-4665-a070-57453082c250"]}]}},"in_task_type_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Set for a trigger of one condition with one status only","example":null},"in_task_status_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Set for a trigger of one condition with one status only","example":null},"out_field_type":{"type":"string","example":"status"},"out_task_type_id":{"type":"string","format":"uuid","example":"f24a6ea4-ce75-4665-a070-57453082c250"},"out_task_status_id":{"type":"string","format":"uuid","nullable":true,"example":"a34a6ea4-ce75-4665-a070-57453082c250"},"out_only_if_task_status_ids":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"example":null},"import_last_revision":{"type":"boolean","example":false},"archived":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The status automation does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the status automation"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/status-automations/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/status-automations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a status automation","description":"Delete a status automation. You cannot delete an automation that a project or a project template uses. You must be an administrator.","responses":{"204":{"description":"The status automation is deleted"},"400":{"description":"A project or a project template uses this automation"},"403":{"description":"You are not an administrator"},"404":{"description":"The status automation does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the status automation"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/status-automations/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/status-automations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a status automation","description":"Update the fields of a status automation. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. The automation is validated when you change its trigger, entity type or output. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity_type":{"type":"string","description":"Type of entity of the tasks (asset, shot, sequence, episode or edit). Empty means asset.","default":"asset"},"in_conditions":{"type":"object","description":"Conditions that start the automation. It runs when a comment changes a task status and turns the group from false to true. A condition is met when every task of its task type on the entity has one of its statuses, and a condition on a task type that the entity has no task of is ignored. Each task type appears once and belongs to the entity type. With a status output, the task type that the automation changes cannot be a condition, and a condition on a task type after it in the production never starts the automation: under and it still has to be met, under or it is left out. Other keys are refused.","additionalProperties":false,"required":["operator","conditions"],"properties":{"operator":{"type":"string","enum":["and","or"]},"conditions":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["task_type_id","task_status_ids"],"properties":{"task_type_id":{"type":"string","format":"uuid"},"task_status_ids":{"type":"array","minItems":1,"items":{"type":"string","format":"uuid"}}}}}},"example":{"operator":"and","conditions":[{"task_type_id":"b24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250"]},{"task_type_id":"d24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250","e24a6ea4-ce75-4665-a070-57453082c250"]}]}},"in_task_type_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Task type that starts the automation, with in_task_status_id, when in_conditions is not given or sent back as stored. Both null next to in_conditions, they are ignored. The pair cannot clear the trigger: archive the automation instead. Refused on an automation whose trigger has several conditions or statuses.","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"in_task_status_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Task status that starts the automation, see in_task_type_id","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"out_field_type":{"type":"string","enum":["status","ready_for"],"description":"Field that the automation changes. ready_for applies to assets only."},"out_task_type_id":{"type":"string","format":"uuid","description":"Task type that the automation changes","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"out_task_status_id":{"type":"string","format":"uuid","nullable":true,"description":"New task status, null with a ready for output","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"out_only_if_task_status_ids":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"description":"With a status output, the change applies only to a task in one of these statuses. Empty or null means always.","example":[]},"import_last_revision":{"type":"boolean","description":"Copy the last preview to the changed task, from the task of the first condition the entity has with and, from the commented task with or"},"archived":{"type":"boolean","example":false}}}}}},"responses":{"200":{"description":"The updated status automation","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_type":{"type":"string","example":"asset"},"in_conditions":{"type":"object","nullable":true,"example":{"operator":"and","conditions":[{"task_type_id":"b24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250"]},{"task_type_id":"d24a6ea4-ce75-4665-a070-57453082c250","task_status_ids":["c24a6ea4-ce75-4665-a070-57453082c250","e24a6ea4-ce75-4665-a070-57453082c250"]}]}},"in_task_type_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Set for a trigger of one condition with one status only","example":null},"in_task_status_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Set for a trigger of one condition with one status only","example":null},"out_field_type":{"type":"string","example":"status"},"out_task_type_id":{"type":"string","format":"uuid","example":"f24a6ea4-ce75-4665-a070-57453082c250"},"out_task_status_id":{"type":"string","format":"uuid","nullable":true,"example":"a34a6ea4-ce75-4665-a070-57453082c250"},"out_only_if_task_status_ids":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"example":null},"import_last_revision":{"type":"boolean","example":false},"archived":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, a field breaks a database constraint, or the automation is not valid, for example \"Trigger operator must be 'and' or 'or'.\", \"Task type Layout is not a task type of assets.\", \"Task type Layout appears in two conditions: merge their statuses into one.\" or \"This automation has several trigger conditions: update it through in_conditions.\""},"403":{"description":"You are not an administrator"},"404":{"description":"The status automation does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the status automation"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/status-automations/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"field_name\": \"ready_for\",\n  \"field_value\": \"approved\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/status-automations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"field_name\": \"ready_for\",\n    \"field_value\": \"approved\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances":{"post":{"summary":"Create an asset instance","description":"Create an asset instance. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["asset_id"],"properties":{"asset_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Instance Name"}}}}}},"responses":{"201":{"description":"The new asset instance","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"asset_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Instance Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/asset-instances/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"asset_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"name\": \"Instance Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"asset_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"Instance Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get asset instance rows","description":"Get the asset instance rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of asset instance rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-instances/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{instance_id}":{"get":{"summary":"Get an asset instance","description":"Get an asset instance. An administrator can read all the asset instances. Other users must have access to the project of the asset. A vendor must also have a task on the asset.","responses":{"200":{"description":"The asset instance","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"asset_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Instance Name"},"number":{"type":"integer","example":1},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You do not have access to the project of the asset, or you are a vendor without a task on the asset"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset instance"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an asset instance","description":"Delete an asset instance. You must be an administrator.","responses":{"204":{"description":"The asset instance is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset instance"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an asset instance","description":"Update the fields of an asset instance. Send only the fields to change. You cannot change id, created_at, updated_at, number, asset_id, scene_id and target_asset_id. Dates use the ISO 8601 format. An administrator can update all the asset instances. Other users must be in the team of the project of the asset. A client or a vendor of the project cannot update it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Instance Name"}}}}}},"responses":{"200":{"description":"The updated asset instance","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"asset_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Instance Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You do not have access to the project of the asset, or you are a client or a vendor"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the asset instance"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Instance Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Instance Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists":{"post":{"summary":"Create a playlist","description":"Create a playlist. Send the fields of the new row in JSON. You must be an administrator, or a manager or a supervisor in the team of the project. The route sets created_by to you. for_entity must be a valid value. An episode_id of all or main gives no episode. A task_type_id that is not a valid UUID gives no task type. In shots, the route removes a preview that does not belong to its entity.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","project_id"],"properties":{"name":{"type":"string","example":"Playlist Name"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"episode_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"shots":{"type":"array","description":"Shots of the playlist with their previews","items":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid"},"preview_file_id":{"type":"string","format":"uuid"}}}}}}}}},"responses":{"201":{"description":"The new playlist","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Playlist Name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator, or a manager or a supervisor in the team of the project"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/playlists/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Playlist Name\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"episode_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Playlist Name\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"episode_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get playlist rows","description":"Get the playlist rows. A vendor cannot call this route. An administrator gets all the playlists. The other users get only the playlists of the projects of their teams. On a project where you are a client, you get only the playlists shared with clients. On a project where you are a vendor, you get no playlists. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of playlist rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a vendor"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/{instance_id}":{"get":{"summary":"Get a playlist","description":"Get a playlist. You must be in the team of the project, or an administrator. A vendor cannot read playlists. A client can read only the playlists shared with clients.","responses":{"200":{"description":"The playlist","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Playlist Name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"shots":{"type":"array","items":{"type":"object"},"example":[]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the team of the project, you are a vendor, or you are a client and the playlist is not shared with clients"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a playlist","description":"Delete a playlist. Its notifications, build jobs, movie files and share links are deleted too. You must be an administrator, or a manager in the team of the project. A supervisor in the team can also do it on the playlists they created and on the playlists with no creator.","responses":{"204":{"description":"The playlist is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not a manager in the team of the project, or a supervisor in the team who created the playlist"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a playlist","description":"Update the fields of a playlist. Send only the fields to change. You must be an administrator, or a manager in the team of the project. A supervisor in the team can also do it on the playlists they created and on the playlists with no creator. You cannot change id, created_at, updated_at and project_id. for_entity must be a valid value. In shots, each entry keeps only entity_id and preview_file_id. The route removes a preview that does not belong to its entity. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Playlist Name"},"shots":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}},"example":[]}}}}}},"responses":{"200":{"description":"The updated playlist","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Playlist Name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"shots":{"type":"array","items":{"type":"object"},"example":[]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager in the team of the project, or a supervisor in the team who created the playlist"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Playlist Name\",\n  \"shots\": []\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Playlist Name\",\n    \"shots\": []\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/events":{"post":{"summary":"Create model","description":"Create a new model instance with data provided in the request body. JSON format is expected. The model performs validation automatically when instantiated. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Model Name"}}}}}},"responses":{"201":{"description":"Model created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/events/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Model Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get events","description":"Get the events of the API, for example task:update. Add a query parameter for each column to filter on. Use page and limit to get the events page by page. Without page, you get 1000 events or fewer. You must be an administrator.","responses":{"200":{"description":"The list of events, or a page of events if you give page","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Event Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"example":1,"description":"Page number for pagination"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer"},"example":50,"description":"Number of results per page"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Whether to include relations"},{"in":"query","name":"fields","required":false,"schema":{"type":"string"},"example":"name,created_at","description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/events/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/events/{instance_id}":{"get":{"summary":"Get an API event","description":"Get an API event. You must be an administrator.","responses":{"200":{"description":"The api event","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Event Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The api event does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the api event"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/events/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an API event","description":"Delete an API event. You must be an administrator.","responses":{"204":{"description":"The api event is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The api event does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the api event"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/events/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an API event","description":"Update the fields of an API event. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Event Name"}}}}}},"responses":{"200":{"description":"The updated api event","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Event Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The api event does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the api event"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/events/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Event Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Event Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/notifications":{"post":{"summary":"Create a notification","description":"Create a notification. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["person_id","author_id","type"],"properties":{"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"type":{"type":"string","enum":["comment","mention","assignation","reply","reply-mention","playlist-ready"],"example":"comment"},"author_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"playlist_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"reply_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"read":{"type":"boolean","default":false,"example":false}}}}}},"responses":{"201":{"description":"The new notification","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"type":{"type":"string","enum":["comment","mention","assignation","reply","reply-mention","playlist-ready"],"example":"comment"},"author_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"playlist_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"reply_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"read":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/notifications/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"comment_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"read\": false\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/notifications/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"comment_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"read\": false\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get notification rows","description":"Get the notification rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of notification rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/notifications/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/notifications/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/notifications/{instance_id}":{"get":{"summary":"Get a notification","description":"Get a notification. You must be an administrator.","responses":{"200":{"description":"The notification","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"type":{"type":"string","enum":["comment","mention","assignation","reply","reply-mention","playlist-ready"],"example":"comment"},"author_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"playlist_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"reply_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"read":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The notification does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the notification"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/notifications/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/notifications/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a notification","description":"Delete a notification. You must be an administrator.","responses":{"204":{"description":"The notification is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The notification does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the notification"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/notifications/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/notifications/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a notification","description":"Update the fields of a notification. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"type":"boolean","example":true}}}}}},"responses":{"200":{"description":"The updated notification","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"type":{"type":"string","enum":["comment","mention","assignation","reply","reply-mention","playlist-ready"],"example":"comment"},"author_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"playlist_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"reply_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"read":{"type":"boolean","example":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The notification does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the notification"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/notifications/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"read\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/notifications/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"read\": true\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/search-filters":{"post":{"summary":"Create a search filter","description":"Create a search filter. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["person_id","search_filter_group_id","list_type"],"properties":{"name":{"type":"string","example":"My Filter"},"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"search_filter_group_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"list_type":{"type":"string","example":"assets"}}}}}},"responses":{"201":{"description":"The new search filter","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"My Filter"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"search_filter_group_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"list_type":{"type":"string","example":"assets"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/search-filters/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"My Filter\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"search_filter_group_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"list_type\": \"assets\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filters/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"My Filter\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"search_filter_group_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"list_type\": \"assets\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get search filter rows","description":"Get the search filter rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of search filter rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/search-filters/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filters/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/search-filters/{instance_id}":{"get":{"summary":"Get a search filter","description":"Get a search filter. You must be an administrator.","responses":{"200":{"description":"The search filter","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"My Filter"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"search_filter_group_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"list_type":{"type":"string","example":"assets"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The search filter does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the search filter"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/search-filters/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filters/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a search filter","description":"Delete a search filter. You must be an administrator.","responses":{"204":{"description":"The search filter is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The search filter does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the search filter"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/search-filters/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filters/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a search filter","description":"Update the fields of a search filter. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Filter Name"},"list_type":{"type":"string","example":"shots"}}}}}},"responses":{"200":{"description":"The updated search filter","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Filter Name"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"search_filter_group_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"list_type":{"type":"string","example":"shots"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The search filter does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the search filter"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/search-filters/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Filter Name\",\n  \"list_type\": \"shots\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filters/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Filter Name\",\n    \"list_type\": \"shots\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/search-filter-groups":{"post":{"summary":"Create a search filter group","description":"Create a search filter group. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["person_id","list_type"],"properties":{"name":{"type":"string","example":"My Filter Group"},"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"list_type":{"type":"string","example":"assets"},"color":{"type":"string","example":"#FF0000"}}}}}},"responses":{"201":{"description":"The new search filter group","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"My Filter Group"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/search-filter-groups/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"My Filter Group\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filter-groups/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"My Filter Group\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get search filter group rows","description":"Get the search filter group rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of search filter group rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/search-filter-groups/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filter-groups/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/search-filter-groups/{instance_id}":{"get":{"summary":"Get a search filter group","description":"Get a search filter group. You must be an administrator.","responses":{"200":{"description":"The search filter group","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"My Filter Group"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The search filter group does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the search filter group"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/search-filter-groups/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a search filter group","description":"Delete a search filter group. You must be an administrator.","responses":{"204":{"description":"The search filter group is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The search filter group does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the search filter group"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/search-filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a search filter group","description":"Update the fields of a search filter group. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Filter Group Name"}}}}}},"responses":{"200":{"description":"The updated search filter group","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Filter Group Name"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The search filter group does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the search filter group"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/search-filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Filter Group Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search-filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Filter Group Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/schedule-items":{"post":{"summary":"Create a schedule item","description":"Create a schedule item. Send the fields of the new row in JSON. You must be an administrator or a manager of the project. A project, a task type and an object can have only one schedule item.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","task_type_id","object_id"],"properties":{"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"man_days":{"type":"number","example":10.5}}}}}},"responses":{"201":{"description":"The new schedule item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"man_days":{"type":"number","example":10.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, a similar schedule item already exists, or a field breaks a database constraint"},"403":{"description":"You are not a manager of the project, or project_id is missing"},"404":{"description":"The project does not exist"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/schedule-items/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"object_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\",\n  \"man_days\": 10.5\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/schedule-items/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"object_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\",\n    \"man_days\": 10.5\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get schedule item rows","description":"Get the schedule item rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of schedule item rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/schedule-items/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/schedule-items/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/schedule-items/{instance_id}":{"get":{"summary":"Get a schedule item","description":"Get a schedule item. You must be an administrator.","responses":{"200":{"description":"The schedule item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"man_days":{"type":"number","example":10.5},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The schedule item does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the schedule item"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/schedule-items/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/schedule-items/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a schedule item","description":"Delete a schedule item. You must be an administrator or a manager of the project.","responses":{"204":{"description":"The schedule item is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The schedule item does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the schedule item"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/schedule-items/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/schedule-items/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a schedule item","description":"Update the fields of a schedule item. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. A man_days value sent as a string is ignored. You must be an administrator, or a manager or a supervisor of the project. A supervisor with departments can change only the items of a task type of these departments.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"man_days":{"type":"number","example":12.0}}}}}},"responses":{"200":{"description":"The updated schedule item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"man_days":{"type":"number","example":12.0},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager or a supervisor of the project, or the task type is not in your departments"},"404":{"description":"The schedule item does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the schedule item"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/schedule-items/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"man_days\": 12\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/schedule-items/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"man_days\": 12\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/news":{"post":{"summary":"Create a news","description":"Create a news. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["author_id","task_id"],"properties":{"change":{"type":"boolean","description":"True if the comment changes the task status"},"author_id":{"type":"string","format":"uuid","description":"Author of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","description":"Task of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","description":"Comment of the news","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","description":"Preview of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new news","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"author_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You cannot create a news"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/news/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"title\": \"Project Update\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"content\": \"News content text\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/news/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"title\": \"Project Update\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"content\": \"News content text\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get news rows","description":"Get the news rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of news rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/news/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/news/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/news/{instance_id}":{"get":{"summary":"Get a news","description":"Get a news. You must be an administrator.","responses":{"200":{"description":"The news","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"author_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The news does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the news"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/news/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/news/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a news","description":"Delete a news. You must be an administrator.","responses":{"204":{"description":"The news is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The news does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the news"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/news/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/news/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a news","description":"Update the fields of a news. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"change":{"type":"boolean","description":"True if the comment changes the task status"},"author_id":{"type":"string","format":"uuid","description":"Author of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","description":"Task of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","description":"Comment of the news","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","description":"Preview of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"200":{"description":"The updated news","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","example":false},"author_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The news does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the news"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/news/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"title\": \"Updated Project Update\",\n  \"content\": \"Updated news content text\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/news/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"title\": \"Updated Project Update\",\n    \"content\": \"Updated news content text\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/milestones":{"post":{"summary":"Create a milestone","description":"Create a milestone. Send the fields of the new row in JSON. You must be an administrator, or a manager in the team of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","project_id","date"],"properties":{"name":{"type":"string","example":"Milestone Name"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-03-31"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","example":"#ff0000"},"milestone_type":{"type":"string","enum":["kickoff","review","approval","delivery","other"],"default":"other"},"department_id":{"type":"string","format":"uuid","nullable":true,"example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new milestone","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Milestone Name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-03-31"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator or a manager in the team of the project"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/milestones/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Milestone Name\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"date\": \"2024-03-31\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/milestones/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Milestone Name\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"date\": \"2024-03-31\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get milestone rows","description":"Get the milestone rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of milestone rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/milestones/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/milestones/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/milestones/{instance_id}":{"get":{"summary":"Get a milestone","description":"Get a milestone. You must be in the team of its project. A vendor cannot read it.","responses":{"200":{"description":"The milestone","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Milestone Name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-03-31"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the team of the project, or you are a vendor"},"404":{"description":"The milestone does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the milestone"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/milestones/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/milestones/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a milestone","description":"Delete a milestone. You must be an administrator, or a manager in the team of the project.","responses":{"204":{"description":"The milestone is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator or a manager in the team of the project"},"404":{"description":"The milestone does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the milestone"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/milestones/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/milestones/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a milestone","description":"Update the fields of a milestone. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. You must be an administrator, or a manager in the team of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Milestone Name"},"date":{"type":"string","format":"date","example":"2024-04-30"},"color":{"type":"string","nullable":true,"pattern":"^#[0-9a-fA-F]{6}$","example":"#00aa11"},"milestone_type":{"type":"string","enum":["kickoff","review","approval","delivery","other"]},"department_id":{"type":"string","format":"uuid","nullable":true,"example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"200":{"description":"The updated milestone","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Milestone Name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2024-04-30"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator or a manager in the team of the project"},"404":{"description":"The milestone does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the milestone"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/milestones/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Milestone Name\",\n  \"date\": \"2024-04-30\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/milestones/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Milestone Name\",\n    \"date\": \"2024-04-30\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/metadata-descriptors":{"post":{"summary":"Create a metadata descriptor","description":"Create a metadata descriptor. Send the fields of the new row in JSON. data_type must be a known type. For an entity column, field_name cannot be the name of a built-in field. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","field_name","data_type","project_id"],"properties":{"name":{"type":"string","example":"Custom Field"},"field_name":{"type":"string","example":"custom_field"},"data_type":{"type":"string","example":"text"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_type":{"type":"string","example":"Asset"}}}}}},"responses":{"201":{"description":"The new metadata descriptor","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Custom Field"},"field_name":{"type":"string","example":"custom_field"},"data_type":{"type":"string","example":"text"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_type":{"type":"string","example":"Asset"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/metadata-descriptors/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Custom Field\",\n  \"field_name\": \"custom_field\",\n  \"data_type\": \"text\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_type\": \"Asset\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/metadata-descriptors/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Custom Field\",\n    \"field_name\": \"custom_field\",\n    \"data_type\": \"text\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_type\": \"Asset\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get metadata descriptor rows","description":"Get the metadata descriptor rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. If you are not an administrator, you get only the descriptors of the open projects of your team. Your role on each project sets what you get. A client gets only the descriptors for clients. A vendor gets only the descriptors of their departments or of no department.","responses":{"200":{"description":"The list of metadata descriptor rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Custom Field"},"field_name":{"type":"string","example":"custom_field"},"data_type":{"type":"string","example":"text"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}},{"type":"object","description":"Response when you give page","properties":{"data":{"type":"array","items":{"type":"object"}},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You cannot read these rows"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the departments of each descriptor. Without any query parameter, the response includes the departments of each descriptor. With a query parameter, give relations=true to get them.","schema":{"type":"boolean"}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/metadata-descriptors/?page=1&limit=50&relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/metadata-descriptors/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/metadata-descriptors/{instance_id}":{"get":{"summary":"Get a metadata descriptor","description":"Get a metadata descriptor. You must be an administrator.","responses":{"200":{"description":"The metadata descriptor","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Custom Field"},"field_name":{"type":"string","example":"custom_field"},"data_type":{"type":"string","example":"text"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_type":{"type":"string","example":"Asset"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The metadata descriptor does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the metadata descriptor"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/metadata-descriptors/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/metadata-descriptors/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a metadata descriptor","description":"Delete a metadata descriptor. You must be an administrator.","responses":{"204":{"description":"The metadata descriptor is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The metadata descriptor does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the metadata descriptor"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/metadata-descriptors/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/metadata-descriptors/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a metadata descriptor","description":"Update the fields of a metadata descriptor. Send only the fields to change. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format. data_type must be a known type. For an entity column, a new field_name cannot be the name of a built-in field. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Custom Field"},"data_type":{"type":"string","example":"number"}}}}}},"responses":{"200":{"description":"The updated metadata descriptor","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Custom Field"},"field_name":{"type":"string","example":"custom_field"},"data_type":{"type":"string","example":"number"},"departments":{"type":"array","description":"Departments the descriptor is limited to","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250"]},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The metadata descriptor does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the metadata descriptor"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/metadata-descriptors/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Custom Field\",\n  \"data_type\": \"number\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/metadata-descriptors/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Custom Field\",\n    \"data_type\": \"number\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/subscriptions":{"post":{"summary":"Create a subscription","description":"Create a subscription. Send the fields of the new row in JSON. A person follows a task once. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["person_id"],"properties":{"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","description":"Task to follow","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Deprecated","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Deprecated","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new subscription","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Deprecated","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Deprecated","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/subscriptions/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/subscriptions/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get subscription rows","description":"Get the subscription rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of subscription rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/subscriptions/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/subscriptions/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/subscriptions/{instance_id}":{"get":{"summary":"Get a subscription","description":"Get a subscription. You must be an administrator.","responses":{"200":{"description":"The subscription","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Deprecated","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Deprecated","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The subscription does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the subscription"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/subscriptions/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/subscriptions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a subscription","description":"Delete a subscription. You must be an administrator.","responses":{"204":{"description":"The subscription is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The subscription does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the subscription"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/subscriptions/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/subscriptions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a subscription","description":"Update the fields of a subscription. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","description":"Task to follow","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Deprecated","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Deprecated","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"200":{"description":"The updated subscription","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Deprecated","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Deprecated","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The subscription does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the subscription"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/subscriptions/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/subscriptions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entity-links":{"post":{"summary":"Create an entity link","description":"Create an entity link. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity_in_id","entity_out_id"],"properties":{"entity_in_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_out_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"nb_occurences":{"type":"integer","default":1,"example":1},"label":{"type":"string","example":"fixed"}}}}}},"responses":{"201":{"description":"The new entity link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_in_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_out_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_occurences":{"type":"integer","example":1},"label":{"type":"string","example":"fixed"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entity-links/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"entity_in_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"entity_out_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"nb_occurences\": 1,\n  \"label\": \"fixed\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-links/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"entity_in_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_out_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"nb_occurences\": 1,\n    \"label\": \"fixed\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get entity link rows","description":"Get the entity link rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of entity link rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entity-links/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-links/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entity-links/{instance_id}":{"get":{"summary":"Get an entity link","description":"Get an entity link. You must be an administrator.","responses":{"200":{"description":"The entity link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_in_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_out_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_occurences":{"type":"integer","example":1},"label":{"type":"string","example":"fixed"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The entity link does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity link"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entity-links/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-links/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an entity link","description":"Delete an entity link. You must be an administrator.","responses":{"204":{"description":"The entity link is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The entity link does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity link"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/entity-links/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-links/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update an entity link","description":"Update the fields of an entity link. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nb_occurences":{"type":"integer","example":2},"label":{"type":"string","example":"updated"}}}}}},"responses":{"200":{"description":"The updated entity link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_in_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_out_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_occurences":{"type":"integer","example":2},"label":{"type":"string","example":"updated"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The entity link does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity link"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/entity-links/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"nb_occurences\": 2,\n  \"label\": \"updated\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entity-links/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"nb_occurences\": 2,\n    \"label\": \"updated\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/chats":{"post":{"summary":"Create a chat","description":"Create a chat. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["object_id"],"properties":{"object_id":{"type":"string","format":"uuid","description":"Entity of the chat","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_type":{"type":"string","description":"Type of the entity of the chat. The default value is entity."}}}}}},"responses":{"201":{"description":"The new chat","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"object_type":{"type":"string","example":"Asset"},"last_message":{"type":"string","format":"date-time","nullable":true,"example":"2024-01-15T10:30:00Z"},"participants":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/chats/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"object_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"object_type\": \"Asset\",\n  \"name\": \"Chat Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chats/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"object_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"object_type\": \"Asset\",\n    \"name\": \"Chat Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get chat rows","description":"Get the chat rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of chat rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/chats/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chats/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/chats/{instance_id}":{"get":{"summary":"Get a chat","description":"Get a chat. You must be an administrator.","responses":{"200":{"description":"The chat","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"object_type":{"type":"string","example":"Asset"},"last_message":{"type":"string","format":"date-time","nullable":true,"example":"2024-01-15T10:30:00Z"},"participants":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The chat does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the chat"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/chats/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chats/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a chat","description":"Delete a chat. You must be an administrator.","responses":{"204":{"description":"The chat is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The chat does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the chat"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/chats/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chats/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a chat","description":"Update the fields of a chat. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"object_id":{"type":"string","format":"uuid","description":"Entity of the chat","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_type":{"type":"string","description":"Type of the entity of the chat"}}}}}},"responses":{"200":{"description":"The updated chat","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"object_type":{"type":"string","example":"Asset"},"last_message":{"type":"string","format":"date-time","nullable":true,"example":"2024-01-15T10:30:00Z"},"participants":{"type":"array","items":{"type":"string","format":"uuid"},"example":["c24a6ea4-ce75-4665-a070-57453082c250"]},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The chat does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the chat"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/chats/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Chat Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chats/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Chat Name\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/chat-messages":{"post":{"summary":"Create a chat message","description":"Create a chat message. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["chat_id","person_id"],"properties":{"chat_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Message text"}}}}}},"responses":{"201":{"description":"The new chat message","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"chat_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Message text"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/chat-messages/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"chat_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n  \"text\": \"Message text\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chat-messages/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"chat_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"person_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"text\": \"Message text\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get chat message rows","description":"Get the chat message rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of chat message rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/chat-messages/?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chat-messages/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/chat-messages/{instance_id}":{"get":{"summary":"Get a chat message","description":"Get a chat message. You must be an administrator.","responses":{"200":{"description":"The chat message","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"chat_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Message text"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The chat message does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the chat message"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/chat-messages/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chat-messages/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a chat message","description":"Delete a chat message. You must be an administrator.","responses":{"204":{"description":"The chat message is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The chat message does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the chat message"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/chat-messages/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chat-messages/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a chat message","description":"Update the fields of a chat message. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","example":"Updated message text"}}}}}},"responses":{"200":{"description":"The updated chat message","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"chat_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Updated message text"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The chat message does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the chat message"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/chat-messages/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"text\": \"Updated message text\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/chat-messages/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"text\": \"Updated message text\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/preview-background-files":{"post":{"summary":"Create a preview background file","description":"Create a preview background file. Send the fields of the new row in JSON. You must be an administrator. The name must be unique. If is_default is true, the other files stop being the default.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"background_file_name"},"is_default":{"type":"boolean","default":false,"example":false}}}}}},"responses":{"201":{"description":"The new preview background file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"background_file_name"},"is_default":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/preview-background-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"background_file_name\",\n  \"is_default\": false\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-background-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"background_file_name\",\n    \"is_default\": false\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get preview background file rows","description":"Get the preview background file rows. All users can call this route. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of preview background file rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/preview-background-files?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-background-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/preview-background-files/{instance_id}":{"get":{"summary":"Get a preview background file","description":"Get a preview background file. All users can read preview background files.","responses":{"200":{"description":"The preview background file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"background_file_name"},"is_default":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The preview background file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview background file"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a preview background file","description":"Delete a preview background file. Its stored files are deleted too. You must be an administrator.","responses":{"204":{"description":"The preview background file is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The preview background file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview background file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a preview background file","description":"Update the fields of a preview background file. Send only the fields to change. You must be an administrator. You cannot change id, created_at, updated_at. The name must be unique. If is_default is true, the other files stop being the default. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"updated_background_file_name"},"is_default":{"type":"boolean","example":true}}}}}},"responses":{"200":{"description":"The updated preview background file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"updated_background_file_name"},"is_default":{"type":"boolean","example":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The preview background file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview background file"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"updated_background_file_name\",\n  \"is_default\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"updated_background_file_name\",\n    \"is_default\": true\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/studios":{"post":{"summary":"Create a studio","description":"Create a studio. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","color"],"properties":{"name":{"type":"string","example":"Studio Name"},"color":{"type":"string","description":"Hex color of the studio","example":"#FF0000"},"archived":{"type":"boolean","example":false}}}}}},"responses":{"201":{"description":"The new studio","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Studio Name"},"color":{"type":"string","example":"#FF0000"},"archived":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/studios\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Studio Name\",\n  \"hours_by_day\": 8\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/studios\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Studio Name\",\n    \"hours_by_day\": 8\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get studio rows","description":"Get the studio rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. All users can read them.","responses":{"200":{"description":"The list of studio rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/studios?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/studios\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/studios/{instance_id}":{"get":{"summary":"Get a studio","description":"Get a studio. All users can read it.","responses":{"200":{"description":"The studio","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Studio Name"},"color":{"type":"string","example":"#FF0000"},"archived":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"404":{"description":"The studio does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the studio"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/studios/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/studios/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a studio","description":"Delete a studio. You must be an administrator.","responses":{"204":{"description":"The studio is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The studio does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the studio"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/studios/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/studios/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a studio","description":"Update the fields of a studio. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Studio Name"},"color":{"type":"string","description":"Hex color of the studio","example":"#FF0000"},"archived":{"type":"boolean","example":false}}}}}},"responses":{"200":{"description":"The updated studio","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Studio Name"},"color":{"type":"string","example":"#FF0000"},"archived":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The studio does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the studio"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/studios/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Studio Name\",\n  \"hours_by_day\": 7.5\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/studios/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Studio Name\",\n    \"hours_by_day\": 7.5\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/salary-scales":{"post":{"summary":"Create model","description":"Create a new model instance with data provided in the request body. JSON format is expected. The model performs validation automatically when instantiated. Unless the model says otherwise, you must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Model Name"}}}}}},"responses":{"201":{"description":"Model created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Model Name"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"Invalid data format or validation error"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/salary-scales\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Model Name\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/salary-scales\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Model Name\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the salary scales","description":"Get the salary scales of the studio. Each department has a salary scale for each position and each seniority. This route creates the missing salary scales before it sends the list. You must be an administrator.","responses":{"200":{"description":"The list of salary scales","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"junior"},"salary":{"type":"integer","description":"Daily salary","example":50}}}}}}},"400":{"description":"Query error"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/salary-scales\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/salary-scales\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/salary-scales/{instance_id}":{"get":{"summary":"Get a salary scale","description":"Get a salary scale. You must be an administrator.","responses":{"200":{"description":"The salary scale","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"junior"},"salary":{"type":"integer","description":"Daily salary","example":50},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The salary scale does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the salary scale"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/salary-scales/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/salary-scales/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a salary scale","description":"Delete a salary scale. You must be an administrator.","responses":{"204":{"description":"The salary scale is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The salary scale does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the salary scale"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/salary-scales/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/salary-scales/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a salary scale","description":"Update the fields of a salary scale. Send only the fields to change. You must be an administrator. You cannot change id, created_at, updated_at and department_id. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"salary":{"type":"integer","description":"Daily salary"}}}}}},"responses":{"200":{"description":"The updated salary scale","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"junior"},"salary":{"type":"integer","description":"Daily salary","example":55},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The salary scale does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the salary scale"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/salary-scales/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"rate\": 55\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/salary-scales/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"rate\": 55\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/budgets":{"post":{"summary":"Create a budget","description":"Create a budget. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","name"],"properties":{"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Budget Q1"},"revision":{"type":"integer","example":1},"currency":{"type":"string","minLength":3,"maxLength":3,"example":"EUR","description":"Code of the currency, with 3 letters"}}}}}},"responses":{"201":{"description":"The new budget","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Budget Q1"},"revision":{"type":"integer","example":1},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"]},"get":{"summary":"Get budget rows","description":"Get the budget rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of budget rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"]}},"/data/budgets/{instance_id}":{"get":{"summary":"Get a budget","description":"Get a budget. You must be an administrator.","responses":{"200":{"description":"The budget","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Budget Q1"},"revision":{"type":"integer","example":1},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The budget does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the budget"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"]},"delete":{"summary":"Delete a budget","description":"Delete a budget. You must be an administrator.","responses":{"204":{"description":"The budget is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The budget does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the budget"}],"tags":["Crud"]},"put":{"summary":"Update a budget","description":"Update the fields of a budget. Send only the fields to change. You cannot change id, created_at, updated_at, project_id and revision. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Budget Q1"}}}}}},"responses":{"200":{"description":"The updated budget","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Budget Q1"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The budget does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the budget"}],"tags":["Crud"]}},"/data/budget-entries":{"post":{"summary":"Create a budget entry","description":"Create a budget entry. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["budget_id","department_id","start_date","months_duration","daily_salary"],"properties":{"budget_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","example":"2024-01-15"},"months_duration":{"type":"integer","example":3},"daily_salary":{"type":"number","description":"Daily salary of the entry"},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"mid"},"exceptions":{"type":"object","description":"Exceptions of the entry, as a JSON object"}}}}}},"responses":{"201":{"description":"The new budget entry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"budget_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","nullable":true,"example":"d24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","example":"2024-01-15"},"months_duration":{"type":"integer","example":3},"daily_salary":{"type":"number","example":1000.0},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"mid"},"exceptions":{"type":"object","nullable":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"]},"get":{"summary":"Get budget entry rows","description":"Get the budget entry rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of budget entry rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"]}},"/data/budget-entries/{instance_id}":{"get":{"summary":"Get a budget entry","description":"Get a budget entry. You must be an administrator.","responses":{"200":{"description":"The budget entry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"budget_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","nullable":true,"example":"d24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","example":"2024-01-15"},"months_duration":{"type":"integer","example":3},"daily_salary":{"type":"number","example":1000.0},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"mid"},"exceptions":{"type":"object","nullable":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The budget entry does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the budget entry"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"]},"delete":{"summary":"Delete a budget entry","description":"Delete a budget entry. You must be an administrator.","responses":{"204":{"description":"The budget entry is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The budget entry does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the budget entry"}],"tags":["Crud"]},"put":{"summary":"Update a budget entry","description":"Update the fields of a budget entry. Send only the fields to change. You cannot change id, created_at, updated_at and budget_id. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"department_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","example":"2024-01-15"},"months_duration":{"type":"integer","example":3},"daily_salary":{"type":"number","description":"Daily salary of the entry"},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"mid"},"exceptions":{"type":"object","description":"Exceptions of the entry, as a JSON object"}}}}}},"responses":{"200":{"description":"The updated budget entry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"budget_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","nullable":true,"example":"d24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","example":"2024-01-15"},"months_duration":{"type":"integer","example":3},"daily_salary":{"type":"number","example":1500.0},"position":{"type":"string","example":"artist"},"seniority":{"type":"string","example":"mid"},"exceptions":{"type":"object","nullable":true},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The budget entry does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the budget entry"}],"tags":["Crud"]}},"/data/plugins/{instance_id}":{"get":{"summary":"Get a plugin","description":"Get a plugin. You must be an administrator.","responses":{"200":{"description":"The plugin","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Plugin Name"},"plugin_id":{"type":"string","example":"my-plugin"},"version":{"type":"string","example":"1.0.0"},"frontend_project_enabled":{"type":"boolean","example":false},"frontend_studio_enabled":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The plugin does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the plugin"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/plugins/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/plugins/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a plugin","description":"Delete a plugin. You must be an administrator.","responses":{"204":{"description":"The plugin is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not an administrator"},"404":{"description":"The plugin does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the plugin"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/plugins/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/plugins/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a plugin","description":"Update the fields of a plugin. Send only the fields to change. You cannot change id, created_at, updated_at. Dates use the ISO 8601 format. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Plugin Name"},"frontend_project_enabled":{"type":"boolean","description":"Show the plugin in the project pages"},"frontend_studio_enabled":{"type":"boolean","description":"Show the plugin in the studio pages"}}}}}},"responses":{"200":{"description":"The updated plugin","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Plugin Name"},"plugin_id":{"type":"string","example":"my-plugin"},"version":{"type":"string","example":"1.0.0"},"frontend_project_enabled":{"type":"boolean","example":false},"frontend_studio_enabled":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"},"404":{"description":"The plugin does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the plugin"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/plugins/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Plugin Name\",\n  \"active\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/plugins/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Plugin Name\",\n    \"active\": true\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/plugins":{"post":{"summary":"Create a plugin","description":"Create a plugin. Send the fields of the new row in JSON. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["plugin_id","name","version","maintainer_name","license"],"properties":{"plugin_id":{"type":"string","example":"my-plugin"},"name":{"type":"string","example":"Plugin Name"},"version":{"type":"string","example":"1.0.0"},"maintainer_name":{"type":"string","example":"John Doe"},"maintainer_email":{"type":"string","format":"email","example":"john.doe@example.com"},"website":{"type":"string","format":"uri","example":"https://example.com"},"license":{"type":"string","example":"MIT"},"revision":{"type":"string","example":"a1b2c3d"},"description":{"type":"string","example":"Adds a custom view"},"icon":{"type":"string","description":"Name of a lucide icon","example":"puzzle"},"frontend_project_enabled":{"type":"boolean","description":"Show the plugin in the project pages"},"frontend_studio_enabled":{"type":"boolean","description":"Show the plugin in the studio pages"}}}}}},"responses":{"201":{"description":"The new plugin","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Plugin Name"},"plugin_id":{"type":"string","example":"my-plugin"},"version":{"type":"string","example":"1.0.0"},"frontend_project_enabled":{"type":"boolean","example":false},"frontend_studio_enabled":{"type":"boolean","example":false},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not an administrator"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/plugins\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Plugin Name\",\n  \"active\": false\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/plugins\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Plugin Name\",\n    \"active\": false\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get plugin rows","description":"Get the plugin rows. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"]. You must be an administrator.","responses":{"200":{"description":"The list of plugin rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/plugins?page=1&limit=50&relations=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/plugins\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/production-schedule-versions":{"post":{"summary":"Create a production schedule version","description":"Create a production schedule version. Send the fields of the new row in JSON. You must be a manager in the team of the project, or an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","project_id"],"properties":{"name":{"type":"string","example":"Schedule Version 1"},"project_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new production schedule version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Schedule Version 1"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager in the team of the project"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/production-schedule-versions\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Schedule Version 1\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-versions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Schedule Version 1\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get production schedule version rows","description":"Get the production schedule version rows. Give project_id to get the rows of a project. You must then be in the team of this project. Without project_id, you must be an administrator. A vendor or a client cannot call this route. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of production schedule version rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a vendor or a client, you are not in the team of the project, or you give no project_id and you are not an administrator"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Filter by project ID"},{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/production-schedule-versions?page=1&limit=50&relations=false&project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-versions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false,\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/production-schedule-versions/{instance_id}":{"get":{"summary":"Get a production schedule version","description":"Get a production schedule version. You must be in the team of the project, or an administrator. A vendor or a client cannot read schedule versions.","responses":{"200":{"description":"The production schedule version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Schedule Version 1"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the team of the project, or you are a vendor or a client"},"404":{"description":"The production schedule version does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the production schedule version"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a production schedule version","description":"Delete a production schedule version. The versions copied from it and the project that uses it lose their link to it first. You must be a manager in the team of the project, or an administrator.","responses":{"204":{"description":"The production schedule version is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not a manager in the team of the project"},"404":{"description":"The production schedule version does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the production schedule version"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a production schedule version","description":"Update the fields of a production schedule version. Send only the fields to change. You must be a manager in the team of the project, or an administrator. You cannot change id, created_at, updated_at and project_id. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"Updated Schedule Version 1"}}}}}},"responses":{"200":{"description":"The updated production schedule version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Updated Schedule Version 1"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager in the team of the project"},"404":{"description":"The production schedule version does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the production schedule version"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Schedule Version 1\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Schedule Version 1\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/production-schedule-version-task-links/{instance_id}":{"get":{"summary":"Get a production schedule version task link","description":"Get a production schedule version task link. You must be in the team of the project of the task, or an administrator. A vendor or a client cannot read task links.","responses":{"200":{"description":"The production schedule version task link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"production_schedule_version_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not in the team of the project, or you are a vendor or a client"},"404":{"description":"The production schedule version task link does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the production schedule version task link"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Add the related data. The default value is true."}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/production-schedule-version-task-links/a24a6ea4-ce75-4665-a070-57453082c25?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-version-task-links/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a production schedule version task link","description":"Delete a production schedule version task link. You must be a manager in the team of the project of the task, or an administrator.","responses":{"204":{"description":"The production schedule version task link is deleted"},"400":{"description":"Other data uses this row"},"403":{"description":"You are not a manager in the team of the project"},"404":{"description":"The production schedule version task link does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the production schedule version task link"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/production-schedule-version-task-links/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-version-task-links/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a production schedule version task link","description":"Update the fields of a production schedule version task link. Send only the fields to change. You must be a manager in the team of the project of the task, or an administrator. You cannot change id, created_at, updated_at, task_id and production_schedule_version_id. Dates use the ISO 8601 format.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"The updated production schedule version task link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"production_schedule_version_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The body is not valid, a date is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager in the team of the project"},"404":{"description":"The production schedule version task link does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the production schedule version task link"}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/production-schedule-version-task-links/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-version-task-links/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/production-schedule-version-task-links":{"post":{"summary":"Create a production schedule version task link","description":"Create a production schedule version task link. Send the fields of the new row in JSON. The task and the schedule version must be in the same project. You must be a manager in the team of the project, or an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["production_schedule_version_id","task_id"],"properties":{"production_schedule_version_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new production schedule version task link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"production_schedule_version_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, or a field breaks a database constraint"},"403":{"description":"You are not a manager in the team of the project"},"404":{"description":"The production schedule version or the task does not exist"}},"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/production-schedule-version-task-links\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"production_schedule_version_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-version-task-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"production_schedule_version_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get production schedule version task link rows","description":"Get the production schedule version task link rows. Give project_id to get the rows of a project. You must then be in the team of this project. Without project_id, you must be an administrator. A vendor or a client cannot call this route. Add a query parameter for each column to filter on, for example name=Modeling. The name filter does not make a difference between upper case and lower case. To get the rows that have one value of a list, give the list in JSON, for example task_status_id=[\"<id1>\",\"<id2>\"].","responses":{"200":{"description":"The list of production schedule version task link rows, or a page of rows if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"example":[]},"total":{"type":"integer","example":100},"nb_pages":{"type":"integer","example":2},"limit":{"type":"integer","example":50},"offset":{"type":"integer","example":0},"page":{"type":"integer","example":1}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a vendor or a client, you are not in the team of the project, or you give no project_id and you are not an administrator"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Filter by project ID"},{"in":"query","name":"page","required":false,"description":"Page to get. Without this parameter, the response has all the rows.","example":1,"schema":{"type":"integer"}},{"in":"query","name":"limit","required":false,"description":"Number of rows in a page. The default value is 100.","example":100,"schema":{"type":"integer"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}},{"in":"query","name":"fields","required":false,"description":"Comma-separated list of the fields to get for each row. The response always has id and type. The names that are not fields are ignored.","example":"id,name","schema":{"type":"string"}}],"tags":["Crud"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/production-schedule-version-task-links?page=1&limit=50&relations=false&project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-version-task-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"limit\": 50,\n    \"relations\": false,\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/software-licenses":{"get":{"summary":"Get the software licenses of all departments","description":"Get the software licenses of each department. The response is a map of department identifiers to lists of software licenses. You must be an administrator.","responses":{"200":{"description":"A map of department identifiers to lists of software licenses","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Software license unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Software license name","example":"Maya"},"short_name":{"type":"string","description":"Software license short name","example":"MAYA"},"file_extension":{"type":"string","description":"Default file extension for the software license","example":".ma"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}}},"403":{"description":"You are not an administrator"}},"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/departments/software-licenses\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/software-licenses\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/{department_id}/software-licenses":{"post":{"summary":"Add a software license to a department","description":"Add a software license to a department. The budget forecast uses the software licenses of each department. If the link already exists, the route returns it. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["software_id"],"properties":{"software_id":{"type":"string","format":"uuid","description":"Software identifier to add to department","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The link between the department and the software license","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Software license department link unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"software_id":{"type":"string","format":"uuid","description":"Software license identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The department or the software license does not exist"}},"parameters":[{"in":"path","name":"department_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department","schema":{"type":"string","format":"uuid"}}],"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/software-licenses\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"software_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/software-licenses\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"software_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/{department_id}/software-licenses/{software_id}":{"get":{"summary":"Get a software license of a department","description":"Get a software license of a department. You must be an administrator.","responses":{"200":{"description":"The software license","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Software license unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Software license name","example":"Maya"},"short_name":{"type":"string","description":"Software license short name","example":"MAYA"},"file_extension":{"type":"string","description":"Default file extension for the software license","example":".ma"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The department does not have this software license"}},"parameters":[{"in":"path","name":"department_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"software_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the software license","schema":{"type":"string","format":"uuid"}}],"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/software-licenses/{software_id}\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/software-licenses/{software_id}\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Remove a software license from a department","description":"Remove a software license from a department. The software license is not deleted. If the department and the software license exist but are not linked, the route also returns 204. You must be an administrator.","responses":{"204":{"description":"The software license is removed from the department"},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The department or the software license does not exist"}},"parameters":[{"in":"path","name":"department_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"software_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the software license to remove","schema":{"type":"string","format":"uuid"}}],"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/software-licenses/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/software-licenses/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/hardware-items":{"get":{"summary":"Get the hardware items of all departments","description":"Get the hardware items of each department. The response is a map of department identifiers to lists of hardware items. You must be an administrator.","responses":{"200":{"description":"A map of department identifiers to lists of hardware items","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Hardware item unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Hardware item name","example":"Workstation"},"description":{"type":"string","description":"Hardware item description","example":"High-performance workstation"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}}},"403":{"description":"You are not an administrator"}},"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/departments/hardware-items\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/hardware-items\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/{department_id}/hardware-items":{"post":{"summary":"Add a hardware item to a department","description":"Add a hardware item to a department. The budget forecast uses the hardware items of each department. If the link already exists, the route returns it. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["hardware_item_id"],"properties":{"hardware_item_id":{"type":"string","format":"uuid","description":"Hardware item identifier to add to department","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The link between the department and the hardware item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Hardware department link unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"hardware_item_id":{"type":"string","format":"uuid","description":"Hardware item identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The department or the hardware item does not exist"}},"parameters":[{"in":"path","name":"department_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department","schema":{"type":"string","format":"uuid"}}],"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/hardware-items\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"hardware_item_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/hardware-items\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"hardware_item_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/{department_id}/hardware-items/{hardware_item_id}":{"get":{"summary":"Get a hardware item of a department","description":"Get a hardware item of a department. You must be an administrator.","responses":{"200":{"description":"The hardware item","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Hardware item unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Hardware item name","example":"Workstation"},"description":{"type":"string","description":"Hardware item description","example":"High-performance workstation"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The hardware item is not linked to the department"}},"parameters":[{"in":"path","name":"department_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"hardware_item_id","required":true,"description":"Unique identifier of the hardware item","example":"b35b7fb5-df86-5776-b181-68564193d360","schema":{"type":"string","format":"uuid"}}],"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/hardware-items/{hardware_item_id}\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/hardware-items/{hardware_item_id}\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Remove a hardware item from a department","description":"Remove a hardware item from a department. The hardware item is not deleted. If the department and the hardware item exist but are not linked, the route also returns 204. You must be an administrator.","responses":{"204":{"description":"The hardware item is removed from the department"},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not an administrator"},"404":{"description":"The department or the hardware item does not exist"}},"parameters":[{"in":"path","name":"department_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"hardware_item_id","required":true,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Unique identifier of the hardware item to remove","schema":{"type":"string","format":"uuid"}}],"tags":["Departments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/hardware-items/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/departments/a24a6ea4-ce75-4665-a070-57453082c25/hardware-items/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/departments/{department_id}/persons":{"get":{"summary":"Get the members of a department","description":"Get the persons of a department, sorted by name. An administrator gets all the fields of each person. Other users get the minimal fields. Clients cannot use this route.","responses":{"200":{"description":"The list of persons","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","description":"Person first name","example":"John"},"last_name":{"type":"string","description":"Person last name","example":"Doe"},"departments":{"type":"array","description":"Departments the person belongs to","items":{"type":"string","format":"uuid","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}}},"400":{"description":"The identifier is not a valid UUID"},"403":{"description":"You are a client"},"404":{"description":"The department does not exist"}},"parameters":[{"in":"path","name":"department_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the department"}],"tags":["Departments"]}},"/actions/projects/{project_id}/delete-entities":{"post":{"summary":"Delete entities","description":"Delete the assets, shots, edits and concepts of the list in one request. The body is a list of entity identifiers. Without force, an entity with tasks is marked as canceled. If the entity is already canceled, it is deleted. A concept is always deleted. With force=true, all the entities are deleted with their tasks. The creator of an entity can delete it if the creator is in the project team. For the other entities, you must be a manager of the project. Only a manager of the project can use force=true.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Entity unique identifiers to delete"}}}},"responses":{"200":{"description":"The identifiers of the deleted entities. The entities of other projects and the entities of other types are skipped.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}}},"400":{"description":"The body is not a list of valid identifiers"},"403":{"description":"You cannot delete one of the entities"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean"},"description":"Delete the entities and their tasks, also when they are not canceled","example":false}],"tags":["Entities"]}},"/data/entities/{entity_id}/news":{"get":{"summary":"Get the news of an entity","description":"Get the news of the tasks of an entity. A news is made when a comment is posted on a task. Clients cannot use this route.","responses":{"200":{"description":"The list of news","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"News unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"change":{"type":"boolean","description":"Whether this news represents a change","example":true},"author_id":{"type":"string","format":"uuid","description":"Author person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"preview_file_id":{"type":"string","format":"uuid","description":"Preview file identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You are a client, or you do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity","schema":{"type":"string","format":"uuid"}}],"tags":["Entities"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/news\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/news\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/preview-files":{"get":{"summary":"Get the preview files of an entity","description":"Get the preview files of the tasks of an entity.","responses":{"200":{"description":"The list of preview files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Preview file name","example":"preview_001.jpg"},"path":{"type":"string","description":"File path","example":"/previews/entity/preview_001.jpg"},"revision":{"type":"integer","description":"File revision number","example":1},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"403":{"description":"You do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity","schema":{"type":"string","format":"uuid"}}],"tags":["Entities"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/tasks":{"post":{"summary":"Create tasks for an entity","description":"Create one task for each task type of the list. The project must use each task type. For an asset, the workflow of the asset type (the one of the project when set, else the studio one) must also have each task type. If the list is empty, the route uses all the task types that are valid for the entity. If a task with the same task type exists, it is skipped. Clients and vendors cannot use this route.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Optional list of task type IDs to create. Omit or pass an empty list to default to every task type valid for the entity."}},"example":{"task_type_ids":["b24a6ea4-ce75-4665-a070-57453082c250"]}}}}},"responses":{"201":{"description":"The new tasks"},"400":{"description":"A task type is not used by the project, is not in the workflow of the asset type, or is not for this type of entity"},"403":{"description":"You do not have access to this entity, or you are a client or a vendor"},"404":{"description":"The entity or a task type does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the entity","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Entities"]}},"/data/entities/{entity_id}/time-spents":{"get":{"summary":"Get the time spent on an entity","description":"Get the time spent entries of the tasks of an entity. Clients cannot use this route.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"duration":{"type":"number","format":"float","description":"Time duration in hours","example":2.5},"date":{"type":"string","format":"date","description":"Date when time was spent","example":"2023-12-07"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"person_id":{"type":"string","format":"uuid","description":"Person identifier who spent the time","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"403":{"description":"You are a client, or you do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity","schema":{"type":"string","format":"uuid"}}],"tags":["Entities"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/entities-linked/with-tasks":{"get":{"summary":"Get the entities linked to a concept","description":"Get the entities that are linked to a concept, with the tasks of each entity. Give the identifier of a concept. For another type of entity, the list is empty. Clients cannot use this route.","responses":{"200":{"description":"The list of linked entities with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Entity name","example":"Character Model"},"entity_type_id":{"type":"string","format":"uuid","description":"Entity type identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"parent_id":{"type":"string","format":"uuid","description":"Parent entity identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Task name","example":"Modeling Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"f79f13f9-1320-9010-f625-029985371800"}}}}}}}}}},"403":{"description":"You are a client, or you do not have access to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the concept","schema":{"type":"string","format":"uuid"}}],"tags":["Entities"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/entities-linked/with-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/entities-linked/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/projects/{project_id}/assets.csv":{"get":{"summary":"Export the assets of a project to CSV","description":"Get a CSV file with the assets of a project. Each row gives the asset, its metadata, and the status and the assignees of each task type. Add a query parameter for each column to filter on, for example episode_id. Vendors cannot use this route.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Project,Type,Name,Description,Time Spent Project A,Character,Asset1,Description,10.50"}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/projects/{project_id}/shots.csv":{"get":{"summary":"Export the shots of a project to CSV","description":"Get a CSV file with the shots of a project. Each row gives the shot, its frames, its metadata, and the status and the assignees of each task type. Add a query parameter for each column to filter on, for example episode_id. Vendors cannot use this route.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Project,Episode,Sequence,Name,Description,Time Spent,Frames,Frame In,Frame Out,FPS Project A,EP01,SQ01,SH010,Description,5.25,120,1001,1120,24"}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/projects/{project_id}/casting.csv":{"get":{"summary":"Export the casting of a project to CSV","description":"Get a CSV file with the casting of a project. Each row gives an entity, an asset of its casting, the number of occurrences and the label. Vendors cannot use this route.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Parent,Name,Asset Type,Asset,Occurences,Label Sequence1,SH010,Character,Asset1,1,fixed"}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"b24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the casting of this episode. Give main to get the casting of the assets that are in no episode. Give all to get the casting of the episodes."},{"in":"query","name":"is_shot_casting","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Get the casting of the shots. Else, get the casting of the assets."}],"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/casting.csv?episode_id=b24a6ea4-ce75-4665-a070-57453082c25&is_shot_casting=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/casting.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"episode_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"is_shot_casting\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/projects/{project_id}/edits.csv":{"get":{"summary":"Export the edits of a project to CSV","description":"Get a CSV file with the edits of a project. Each row gives the edit, its metadata, and the status and the assignees of each task type. Vendors cannot use this route.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Project,Episode,Name,Description,Time Spent Project A,EP01,Edit_001,Description,8.75"}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/playlists/{playlist_id}":{"get":{"summary":"Export a playlist to CSV","description":"Get a CSV file with the entities of a playlist. Each row gives the entity, the preview revision, the task status and the last comment. Vendors cannot use this route.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Entity name,Nb Frames,Task Type,Retake count,Revision,Task Status,Last comment author,Last comment date,Last comment SH010,120,Animation,2,10,WIP,John Doe,2024-01-15,Good work"}}},"403":{"description":"You do not have access to this playlist, or you are a vendor"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"}],"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/playlists/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/playlists/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/persons.csv":{"get":{"summary":"Export the persons to CSV","description":"Get a CSV file with the persons of the studio, without the bots. Each row gives the name, email, phone, role, departments, studio, country, contract type, position, seniority, daily salary and active status. Only an administrator gets the daily salary column. You must be a manager.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"First Name;Last Name;Email;Phone;Role;Departments;Studio;Country;Contract Type;Position;Seniority;Daily Salary;Active John;Doe;john.doe@example.com;+1234567890;user;Animation;Paris;FR;freelance;artist;mid;320;yes"}}},"403":{"description":"You are not a manager"}},"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/persons.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/persons.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/projects.csv":{"get":{"summary":"Export the projects to CSV","description":"Get a CSV file with the projects. Each row gives the name and the status of a project. You must be a manager.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Name,Status Project A,Active Project B,Open"}}},"403":{"description":"You are not a manager"}},"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/projects.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/projects.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/tasks.csv":{"get":{"summary":"Export the tasks to CSV","description":"Get a CSV file with the tasks of the open projects. Each row gives the project, task type, episode, sequence, entity, assigner, assignees, dates, duration, estimation and status. You must be a manager.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Project,Task Type,Episode,Sequence,Entity Type,Entity,Assigner,Assignees,Duration,Estimation,Start date,Due date,WIP date,Validation date,Task Status Project A,Animation,EP01,SQ01,Shot,SH010,John Doe,Jane Doe,480,600,2024-01-01,2024-01-15,2024-01-05,2024-01-20,WIP"}}},"403":{"description":"You are not a manager"}},"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/tasks.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/tasks.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/time-spents.csv":{"get":{"summary":"Export the time spents to CSV","description":"Get a CSV file with the time spents of the open projects. Each row gives the project, person, entity, task type, date and duration. You must be a manager.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Project,Person,Entity Type Name,Entity,Task Type,Date,Time spent Project A,John Doe,Shot,SH010,Animation,2024-01-15,480"}}},"403":{"description":"You are not a manager"}},"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/time-spents.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/time-spents.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/export/csv/task-types.csv":{"get":{"summary":"Export the task types to CSV","description":"Get a CSV file with the task types. Each row gives the department and the name of a task type. You must be a manager.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string"},"example":"Department,Name Animation,Animation Modeling,Modeling"}}},"403":{"description":"You are not a manager"}},"tags":["Export"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/export/csv/task-types.csv\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/export/csv/task-types.csv\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/events/last":{"get":{"summary":"Get the last events","description":"Get the last events of the event log, the newest first. Use the query parameters to filter the events. To get the next page, give the identifier of the last event in cursor_event_id. An administrator gets the events of all projects. A manager gets the events of their projects only. You must be a manager. A user who has the manager role on a project only must give project_id.","responses":{"200":{"description":"The list of events","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Event unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Event name","example":"user_login"},"data":{"type":"object","description":"Event data content","example":{"user_id":"b35b7fb5-df86-5776-b181-68564193d360"}},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Event timestamp","example":"2023-01-01T12:00:00Z"},"user_id":{"type":"string","format":"uuid","description":"User identifier who triggered the event","example":"d57d91d7-f108-7998-d403-80786315f580"}}}}}}},"400":{"description":"A date or an identifier is not valid"},"403":{"description":"You are not a manager, you are a manager of this project only and did not give project_id, or you do not have access to this project"}},"parameters":[{"in":"query","name":"after","example":"2022-07-12","description":"Get the events after this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00","schema":{"type":"string","format":"date"}},{"in":"query","name":"before","example":"2022-07-12","description":"Get the events before this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00","schema":{"type":"string","format":"date"}},{"in":"query","name":"only_files","description":"Get only the events about files","example":false,"schema":{"type":"boolean","default":false}},{"in":"query","name":"cursor_event_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get the events that are older than this event","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"limit","example":100,"description":"Maximum number of events. The maximum value is 1000.","schema":{"type":"integer","default":100}},{"in":"query","name":"project_id","example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the events of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"name","example":"user_login","description":"Get only the events with this name, for example task:update","schema":{"type":"string"}},{"in":"query","name":"name_prefixes","example":["task","comment"],"description":"Filter events by object, the part of the event name before the colon. Repeat the parameter for each value.","schema":{"type":"array","items":{"type":"string"}}},{"in":"query","name":"name_suffixes","example":["update","delete"],"description":"Filter events by action, the part of the event name after the colon. Repeat the parameter for each value.","schema":{"type":"array","items":{"type":"string"}}},{"in":"query","name":"person_ids","description":"Filter events by author. Repeat the parameter for each value.","schema":{"type":"array","items":{"type":"string","format":"uuid"}}}],"tags":["Events"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/events/last?after=2022-07-12&before=2022-07-12&only_files=false&cursor_event_id=a24a6ea4-ce75-4665-a070-57453082c25&limit=100&project_id=a24a6ea4-ce75-4665-a070-57453082c25&name=user_login\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/last\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"after\": \"2022-07-12\",\n    \"before\": \"2022-07-12\",\n    \"only_files\": false,\n    \"cursor_event_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"limit\": 100,\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"user_login\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/events/names":{"get":{"summary":"Get the event names","description":"Get the names of the events in the event log, sorted. The log screen uses these names to make its filters. The list is the same for all the productions. It does not show production data. You must have the manager role as your studio role. A manager role given on a project only is not enough.","responses":{"200":{"description":"The sorted list of event names","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","example":"task:update"}}}}},"403":{"description":"You are not a studio manager"}},"tags":["Events"]}},"/data/events/login-logs/last":{"get":{"summary":"Get the last login logs","description":"Get the last login logs, the newest first. To get the next page, give the identifier of the last log in cursor_login_log_id. You must be an administrator.","responses":{"200":{"description":"The list of login logs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Login log unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","description":"Login timestamp","example":"2023-01-01T12:00:00Z"},"ip_address":{"type":"string","description":"IP address of the login","example":"192.168.1.100"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"origin":{"type":"string","description":"Login origin","example":"web","enum":["web","script"]}}}}}}},"400":{"description":"A date or an identifier is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"after","example":"2022-07-12","description":"Get the logs after this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00","schema":{"type":"string","format":"date"}},{"in":"query","name":"before","example":"2022-07-12","description":"Get the logs before this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00","schema":{"type":"string","format":"date"}},{"in":"query","name":"cursor_login_log_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get the logs that are older than this log","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"limit","example":100,"description":"Maximum number of logs. The maximum value is 1000.","schema":{"type":"integer","default":100}},{"in":"query","name":"person_ids","description":"Filter login logs by person. Repeat the parameter for each value.","schema":{"type":"array","items":{"type":"string","format":"uuid"}}}],"tags":["Events"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/events/login-logs/last?before=2022-07-12T00%3A00%3A00&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/events/login-logs/last\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"before\": \"2022-07-12T00:00:00\",\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/files/{file_id}":{"get":{"summary":"Get a file","description":"Get a working file or an output file. Give the identifier of one of the two types.","responses":{"200":{"description":"The working file or the output file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"File unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"File name","example":"main"},"path":{"type":"string","description":"File path","example":"/project/asset/working/main_v001.blend"},"revision":{"type":"integer","description":"File revision","example":1},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"task_id":{"type":"string","format":"uuid","description":"Task identifier (for working files)","example":"c46c80c6-e097-6887-c292-79675204e470"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier (for output files)","example":"d57d91d7-f108-7998-d403-80786315f580"}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"No working file and no output file has this identifier"}},"parameters":[{"in":"path","name":"file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"File unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/working-files":{"get":{"summary":"Get the working files of a task","description":"Get the working files of a task, with all their revisions.","responses":{"200":{"description":"The list of working files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Working file name","example":"main"},"revision":{"type":"integer","description":"Working file revision","example":1},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"403":{"description":"You do not have access to this task"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/working-files/new":{"post":{"summary":"Create a working file","description":"Create a working file for a task. A working file is a revision of a file that an artist uses to make output files. The route uses the file tree of the project to make the path. If revision is 0, the route uses the next revision. The task is assigned to the current user. A vendor must have a task on the entity of the task. If software_id is not given, the route uses the Blender software and creates it if it does not exist. Only a manager of the project can give person_id to set another author. For other users, the author is always the current user.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Working file name","example":"main"},"mode":{"type":"string","description":"Working file mode","default":"working","example":"working"},"description":{"type":"string","description":"Working file description","example":"Main character model"},"comment":{"type":"string","description":"Working file comment","example":"Updated lighting and materials"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"software_id":{"type":"string","format":"uuid","description":"Software identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","description":"Working file revision","example":1},"sep":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"201":{"description":"The new working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Working file name","example":"main"},"path":{"type":"string","description":"Working file path","example":"/project/asset/working/main_v001.blend"},"revision":{"type":"integer","description":"Working file revision","example":1},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, or the working file already exists"},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The task or the software does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files/new\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"mode\": \"working\",\n  \"description\": \"Main character model\",\n  \"comment\": \"Updated lighting and materials\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"software_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"revision\": 1,\n  \"sep\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files/new\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"mode\": \"working\",\n    \"description\": \"Main character model\",\n    \"comment\": \"Updated lighting and materials\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"software_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"revision\": 1,\n    \"sep\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/working-files/last-revisions":{"get":{"summary":"Get the last working files of a task","description":"Get the last revision of each working file of a task, by name.","responses":{"200":{"description":"A map of file names to working files","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Working file name","example":"main"},"revision":{"type":"integer","description":"Working file revision","example":3},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}}},"403":{"description":"You do not have access to this task"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files/last-revisions\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files/last-revisions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/working-file-path":{"post":{"summary":"Get the path of a working file","description":"Get the folder path and the file name of a working file of a task. The route uses the file tree of the project to make the path. If revision is 0, the route uses the next revision. A vendor must have a task on the entity of the task. If software_id is not given, the route uses the 3ds Max software and creates it if it does not exist.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"File name","default":"main","example":"main"},"mode":{"type":"string","description":"File mode","default":"working","example":"working"},"software_id":{"type":"string","format":"uuid","description":"Software identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment":{"type":"string","description":"File comment","example":"Updated lighting"},"revision":{"type":"integer","description":"File revision number","example":1},"sep":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"200":{"description":"The path and the file name","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","description":"Generated file path","example":"/project/asset/working/main_v001.blend"},"name":{"type":"string","description":"Generated file name","example":"main_v001.blend"}}}}}},"400":{"description":"The body is not valid, or the file tree is not valid"},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The task or the software does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-file-path\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"mode\": \"working\",\n  \"software_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"comment\": \"Updated lighting\",\n  \"revision\": 1,\n  \"separator\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-file-path\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"mode\": \"working\",\n    \"software_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"comment\": \"Updated lighting\",\n    \"revision\": 1,\n    \"separator\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/new":{"post":{"summary":"Create an instance output file","description":"Create an output file for an asset instance. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene. If revision is 0, the route uses the next revision.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","description":"Output file name","default":"main","example":"main"},"mode":{"type":"string","description":"Output file mode","default":"output","example":"output"},"output_type_id":{"type":"string","format":"uuid","description":"Output type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"working_file_id":{"type":"string","format":"uuid","description":"Source working file identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"file_status_id":{"type":"string","format":"uuid","description":"File status identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment":{"type":"string","description":"Output file comment","example":"Final render"},"extension":{"type":"string","description":"File extension","example":".mp4"},"representation":{"type":"string","description":"File representation","example":"mp4"},"revision":{"type":"integer","description":"File revision number","example":1},"nb_elements":{"type":"integer","description":"Number of elements","default":1,"example":1},"sep":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"201":{"description":"The new output file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Output file name","example":"main"},"path":{"type":"string","description":"Output file path","example":"/project/asset/instance/output/main_v001.mp4"},"revision":{"type":"integer","description":"Output file revision","example":1},"asset_instance_id":{"type":"string","format":"uuid","description":"Asset instance identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"temporal_entity_id":{"type":"string","format":"uuid","description":"Temporal entity identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, the output type or the person does not exist, or the output file already exists"},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset instance, the temporal entity, the asset or the task type does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"temporal_entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Temporal entity unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-files/new\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"mode\": \"output\",\n  \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"working_file_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"file_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"is_sequence\": false,\n  \"comment\": \"Final render\",\n  \"extension\": \".mp4\",\n  \"representation\": \"mp4\",\n  \"revision\": 1,\n  \"nb_elements\": 1,\n  \"sep\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-files/new\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"mode\": \"output\",\n    \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"working_file_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"file_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"is_sequence\": false,\n    \"comment\": \"Final render\",\n    \"extension\": \".mp4\",\n    \"representation\": \"mp4\",\n    \"revision\": 1,\n    \"nb_elements\": 1,\n    \"sep\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/next-revision":{"post":{"summary":"Get the next revision of an instance output file","description":"Get the next revision number of an output file of an asset instance. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","description":"File name","default":"main","example":"main"},"output_type_id":{"type":"string","format":"uuid","description":"Output type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"200":{"description":"The next revision number","content":{"application/json":{"schema":{"type":"object","properties":{"next_revision":{"type":"integer","description":"Next available revision number","example":2}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset instance, the output type or the task type does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"temporal_entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Temporal entity unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-files/next-revision\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-files/next-revision\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-files/last-revisions":{"get":{"summary":"Get the last output files of an asset instance","description":"Get the last revision of each output file of an asset instance. The response groups the files by output type and by name. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene.","responses":{"200":{"description":"The last revisions, by output type and by name","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"f79f13f9-1320-9010-f625-a09008537180"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":1},"path":{"type":"string","description":"Output file path","example":"/project/asset/instance/output/main_v001.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"temporal_entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this shot or scene","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"output_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"c46c80c6-e097-6887-c292-79675204e470"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this task type","example":"d57d91d7-f108-7998-d403-80786315f580"},{"in":"query","name":"file_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files with this file status","example":"e68e02e8-0219-8009-e514-918974260690"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"cache"},{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the files with this name","example":"main"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-files/last-revisions?output_type_id=c46c8gc6-eg97-6887-c292-79675204e47&task_type_id=d57d9hd7-fh08-7998-d403-80786315f58&file_status_id=e68e0ie8-gi19-8009-e514-91897426g69&representation=cache&name=main\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-files/last-revisions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"output_type_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"task_type_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"file_status_id\": \"e68e0ie8-gi19-8009-e514-91897426g69\",\n    \"representation\": \"cache\",\n    \"name\": \"main\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-types":{"get":{"summary":"Get the output types of an asset instance","description":"Get the output types of the output files of an asset instance. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene.","responses":{"200":{"description":"The list of output types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output type unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Output type name","example":"Render"},"short_name":{"type":"string","description":"Output type short name","example":"RENDER"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"temporal_entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Temporal entity unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-types/{output_type_id}/output-files":{"get":{"summary":"Get the instance output files of an output type","description":"Get the output files of an asset instance that have an output type. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene.","responses":{"200":{"description":"The list of output files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":1},"path":{"type":"string","description":"Output file path","example":"/project/asset/instance/output/main_v001.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"asset_instance_id":{"type":"string","format":"uuid","description":"Asset instance identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"temporal_entity_id":{"type":"string","format":"uuid","description":"Temporal entity identifier","example":"f79f13f9-1320-9010-f625-a09008537180"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"temporal_entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this shot or scene","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"path","name":"output_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"c46c80c6-e097-6887-c292-79675204e470"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"mp4"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-types/c46c8gc6-eg97-6887-c292-79675204e47/output-files?representation=mp4\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-types/c46c8gc6-eg97-6887-c292-79675204e47/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"representation\": \"mp4\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/entities/{temporal_entity_id}/output-file-path":{"post":{"summary":"Get the path of an instance output file","description":"Get the folder path and the file name of an output file of an asset instance. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene. The route uses the file tree of the project to make the path. The route uses the revision of the body as it is. A vendor must have a task on the asset of the instance.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","description":"File name","default":"main","example":"main"},"mode":{"type":"string","description":"File mode","default":"output","example":"output"},"output_type_id":{"type":"string","format":"uuid","description":"Output type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"extension":{"type":"string","description":"File extension","example":".mp4"},"representation":{"type":"string","description":"File representation","example":"mp4"},"revision":{"type":"integer","description":"File revision number","example":1},"separator":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"200":{"description":"The folder path and the file name","content":{"application/json":{"schema":{"type":"object","properties":{"folder_path":{"type":"string","description":"Generated folder path","example":"/project/asset/instance/output"},"file_name":{"type":"string","description":"Generated file name","example":"main_v001.mp4"}}}}}},"400":{"description":"The body is not valid, or the file tree is not valid"},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this asset"},"404":{"description":"The asset instance, the temporal entity, the asset, the output type or the task type does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"temporal_entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Temporal entity unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-file-path\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"mode\": \"output\",\n  \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"extension\": \".mp4\",\n  \"representation\": \"mp4\",\n  \"revision\": 1,\n  \"separator\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/entities/b35b7fb5-df86-5776-b181-68564193d36/output-file-path\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"mode\": \"output\",\n    \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"extension\": \".mp4\",\n    \"representation\": \"mp4\",\n    \"revision\": 1,\n    \"separator\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/working-files":{"get":{"summary":"Get the working files of an entity","description":"Get the working files of the tasks of an entity, with all their revisions.","responses":{"200":{"description":"The list of working files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Working file name","example":"main"},"revision":{"type":"integer","description":"Working file revision","example":1},"path":{"type":"string","description":"Working file path","example":"/project/asset/working/main_v001.blend"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"e68e02e8-0219-8009-e514-918974260690"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"task_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the working files of this task","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the working files with this name","example":"main"},{"in":"query","name":"relations","required":false,"description":"Add the related objects to each working file","schema":{"type":"boolean","default":false}}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/working-files?task_id=b35b7fb5-df86-5776-b181-68564193d36&name=main\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/working-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"task_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"name\": \"main\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-files/new":{"post":{"summary":"Create an output file","description":"Create an output file for an entity. An artist makes an output file from a working file. Give the output type, for example textures or caches. Give the task type to give the department of the file. If revision is 0, the route uses the next revision. An unknown working_file_id is ignored.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","description":"Output file name","example":"main"},"mode":{"type":"string","description":"Output file mode","default":"output","example":"output"},"output_type_id":{"type":"string","format":"uuid","description":"Output type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"working_file_id":{"type":"string","format":"uuid","description":"Source working file identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"file_status_id":{"type":"string","format":"uuid","description":"File status identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"comment":{"type":"string","description":"Output file comment","example":"Final render"},"extension":{"type":"string","description":"File extension","example":".mp4"},"representation":{"type":"string","description":"File representation","example":"mp4"},"revision":{"type":"integer","description":"File revision number","example":1},"nb_elements":{"type":"integer","description":"Number of elements","default":1,"example":1},"sep":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"201":{"description":"The new output file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Output file name","example":"main"},"path":{"type":"string","description":"Output file path","example":"/project/asset/output/main_v001.mp4"},"revision":{"type":"integer","description":"Output file revision","example":1},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, the output type or the person does not exist, the output file already exists, or the file tree of the project is not valid"},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity or the task type does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/new\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"mode\": \"output\",\n  \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"working_file_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"file_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"comment\": \"Final render\",\n  \"extension\": \".mp4\",\n  \"representation\": \"mp4\",\n  \"revision\": 1,\n  \"nb_elements\": 1,\n  \"sep\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/new\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"mode\": \"output\",\n    \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"working_file_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"file_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"comment\": \"Final render\",\n    \"extension\": \".mp4\",\n    \"representation\": \"mp4\",\n    \"revision\": 1,\n    \"nb_elements\": 1,\n    \"sep\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-files/next-revision":{"post":{"summary":"Get the next revision of an output file","description":"Get the next revision number of an output file of an entity. The route finds the last revision for the name, the output type and the task type of the body.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","description":"File name","default":"main","example":"main"},"output_type_id":{"type":"string","format":"uuid","description":"Output type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"200":{"description":"The next revision number","content":{"application/json":{"schema":{"type":"object","properties":{"next_revision":{"type":"integer","description":"Next available revision number","example":3}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity, the output type or the task type does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/next-revision\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/next-revision\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-files/last-revisions":{"get":{"summary":"Get the last output files of an entity","description":"Get the last revision of each output file of an entity. The response groups the files by output type and by name.","responses":{"200":{"description":"The last revisions, by output type and by name","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":2},"path":{"type":"string","description":"Output file path","example":"/project/asset/output/main_v002.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"output_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this task type","example":"c46c80c6-e097-6887-c292-79675204e470"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"mp4"},{"in":"query","name":"file_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files with this file status","example":"d57d91d7-f108-7998-d403-80786315f580"},{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the files with this name","example":"main"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/last-revisions?output_type_id=b35b7fb5-df86-5776-b181-68564193d36&task_type_id=c46c8gc6-eg97-6887-c292-79675204e47&representation=mp4&file_status_id=d57d9hd7-fh08-7998-d403-80786315f58&name=main\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/last-revisions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"output_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"task_type_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"representation\": \"mp4\",\n    \"file_status_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"name\": \"main\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-types":{"get":{"summary":"Get the output types of an entity","description":"Get the output types of the output files of an entity.","responses":{"200":{"description":"The list of output types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Output type name","example":"Cache"},"short_name":{"type":"string","description":"Output type short name","example":"CACHE"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-types/{output_type_id}/output-files":{"get":{"summary":"Get the output files of an output type","description":"Get the output files of an entity that have an output type.","responses":{"200":{"description":"The list of output files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":1},"path":{"type":"string","description":"Output file path","example":"/project/asset/output/main_v001.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"d57d91d7-f108-7998-d403-80786315f580"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity or the output type does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"output_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"mp4"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-types/b35b7fb5-df86-5776-b181-68564193d36/output-files?representation=mp4\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-types/b35b7fb5-df86-5776-b181-68564193d36/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"representation\": \"mp4\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-files":{"get":{"summary":"Get the output files of an entity","description":"Get the output files of an entity.","responses":{"200":{"description":"The list of output files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":1},"path":{"type":"string","description":"Output file path","example":"/project/asset/output/main_v001.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"f79f13f9-1320-9010-f625-a09008537180"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"output_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this task type","example":"c46c80c6-e097-6887-c292-79675204e470"},{"in":"query","name":"file_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files with this file status","example":"d57d91d7-f108-7998-d403-80786315f580"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"cache"},{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the files with this name","example":"main"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files?output_type_id=b35b7fb5-df86-5776-b181-68564193d36&task_type_id=c46c8gc6-eg97-6887-c292-79675204e47&file_status_id=d57d9hd7-fh08-7998-d403-80786315f58&representation=cache&name=main\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"output_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"task_type_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"file_status_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"representation\": \"cache\",\n    \"name\": \"main\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/output-files":{"get":{"summary":"Get the output files of a project","description":"Get the output files of a project. You must be a manager of the project.","responses":{"200":{"description":"The list of output files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":1},"path":{"type":"string","description":"Output file path","example":"/project/asset/output/main_v001.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"f79f13f9-1320-9010-f625-a09008537180"}}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"output_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this task type","example":"c46c80c6-e097-6887-c292-79675204e470"},{"in":"query","name":"file_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files with this file status","example":"d57d91d7-f108-7998-d403-80786315f580"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"cache"},{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the files with this name","example":"main"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/output-files?output_type_id=b35b7fb5-df86-5776-b181-68564193d36&task_type_id=c46c8gc6-eg97-6887-c292-79675204e47&file_status_id=d57d9hd7-fh08-7998-d403-80786315f58&representation=cache&name=main\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"output_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"task_type_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"file_status_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"representation\": \"cache\",\n    \"name\": \"main\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/asset-instances/{asset_instance_id}/output-files":{"get":{"summary":"Get the output files of an asset instance","description":"Get the output files of an asset instance. An asset instance is a copy of an asset in a shot or a scene. The temporal entity is this shot or this scene.","responses":{"200":{"description":"The list of output files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Output file unique identifier","example":"f79f13f9-1320-9010-f625-a09008537180"},"name":{"type":"string","description":"Output file name","example":"main"},"revision":{"type":"integer","description":"Output file revision","example":1},"path":{"type":"string","description":"Output file path","example":"/project/asset/instance/output/main_v001.mp4"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"},"asset_instance_id":{"type":"string","format":"uuid","description":"Asset instance identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"temporal_entity_id":{"type":"string","format":"uuid","description":"Temporal entity identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The asset instance does not exist"}},"parameters":[{"in":"path","name":"asset_instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset instance unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"temporal_entity_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this shot or scene","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"output_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this output type","example":"c46c80c6-e097-6887-c292-79675204e470"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files of this task type","example":"d57d91d7-f108-7998-d403-80786315f580"},{"in":"query","name":"file_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the files with this file status","example":"e68e02e8-0219-8009-e514-918974260690"},{"in":"query","name":"representation","required":false,"schema":{"type":"string"},"description":"Get only the files with this representation, for example abc or fbx","example":"cache"},{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the files with this name","example":"main"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/output-files?temporal_entity_id=b35b7fb5-df86-5776-b181-68564193d36&output_type_id=c46c8gc6-eg97-6887-c292-79675204e47&task_type_id=d57d9hd7-fh08-7998-d403-80786315f58&file_status_id=e68e0ie8-gi19-8009-e514-91897426g69&representation=cache&name=main\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/asset-instances/a24a6ea4-ce75-4665-a070-57453082c25/output-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"temporal_entity_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"output_type_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"task_type_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\",\n    \"file_status_id\": \"e68e0ie8-gi19-8009-e514-91897426g69\",\n    \"representation\": \"cache\",\n    \"name\": \"main\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/output-file-path":{"post":{"summary":"Get the path of an output file","description":"Get the folder path and the file name of an output file of an entity. The route uses the file tree of the project to make the path. If revision is 0, the route uses the next revision. A vendor must have a task on the entity.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["output_type_id","task_type_id"],"properties":{"name":{"type":"string","description":"File name","default":"main","example":"main"},"mode":{"type":"string","description":"File mode","default":"output","example":"output"},"output_type_id":{"type":"string","format":"uuid","description":"Output type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"extension":{"type":"string","description":"File extension","example":".mp4"},"representation":{"type":"string","description":"File representation","example":"mp4"},"revision":{"type":"integer","description":"File revision number","example":1},"separator":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"200":{"description":"The folder path and the file name","content":{"application/json":{"schema":{"type":"object","properties":{"folder_path":{"type":"string","description":"Generated folder path","example":"/project/asset/output"},"file_name":{"type":"string","description":"Generated file name","example":"main_v001.mp4"}}}}}},"400":{"description":"The body is not valid, or the file tree is not valid"},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-file-path\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"main\",\n  \"mode\": \"output\",\n  \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"extension\": \".mp4\",\n  \"representation\": \"mp4\",\n  \"revision\": 1,\n  \"separator\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-file-path\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"main\",\n    \"mode\": \"output\",\n    \"output_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"extension\": \".mp4\",\n    \"representation\": \"mp4\",\n    \"revision\": 1,\n    \"separator\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/guess-from-path":{"post":{"summary":"Guess the entity from a file path","description":"Find the templates of the file tree of a project that match a file path. For each template, the response gives the identifiers that match the tokens of the template.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","file_path"],"properties":{"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"file_path":{"type":"string","description":"File path to analyze","example":"/project/asset/working/main_v001.blend"},"sep":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"200":{"description":"The list of the matching templates","content":{"application/json":{"schema":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"template":{"type":"string","description":"Template name","example":"default"},"confidence":{"type":"number","description":"Confidence score","example":0.95},"data":{"type":"object","description":"Extracted data from path","properties":{"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project"}},"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/entities/guess-from-path\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"file_path\": \"/project/asset/working/main_v001.blend\",\n  \"sep\": \"/\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/guess-from-path\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"file_path\": \"/project/asset/working/main_v001.blend\",\n    \"sep\": \"/\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/guess_from_path":{"post":{"summary":"Guess the entity from a file path","description":"Find the templates of the file tree of a project that match a file path. For each template, the response gives the identifiers that match the tokens of the template.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id","file_path"],"properties":{"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"file_path":{"type":"string","description":"File path to analyze","example":"/project/asset/working/main_v001.blend"},"sep":{"type":"string","description":"Path separator","default":"/","example":"/"}}}}}},"responses":{"200":{"description":"The list of the matching templates","content":{"application/json":{"schema":{"type":"object","properties":{"matches":{"type":"array","items":{"type":"object","properties":{"template":{"type":"string","description":"Template name","example":"default"},"confidence":{"type":"number","description":"Confidence score","example":0.95},"data":{"type":"object","description":"Extracted data from path","properties":{"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project"}},"tags":["Files"]}},"/data/working-files/{working_file_id}/file":{"post":{"summary":"Upload a working file","description":"Upload the file of a working file to the storage. Send the file in a multipart form.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"Working file to upload","example":"file content"}}}}}},"responses":{"201":{"description":"The working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Working file name","example":"main"},"path":{"type":"string","description":"Working file path","example":"/project/asset/working/main_v001.blend"},"revision":{"type":"integer","description":"Working file revision","example":1},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The file is missing"},"403":{"description":"You do not have access to this task"},"404":{"description":"The working file does not exist"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Working file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25/file\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25/file\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Download a working file","description":"Download the file of a working file from the storage. You must be in the project team. A client cannot download it. A manager or a supervisor of the project downloads every working file of the project. An artist or a vendor downloads the working files of the entities they have a task on, and of the assets cast in these entities.","responses":{"200":{"description":"The file","content":{"image/png":{"schema":{"type":"string","format":"binary","description":"PNG image file","example":"binary data"}},"image/jpg":{"schema":{"type":"string","format":"binary","description":"JPEG image file","example":"binary data"}},"image/gif":{"schema":{"type":"string","format":"binary","description":"GIF image file","example":"binary data"}},"application/octet-stream":{"schema":{"type":"string","format":"binary","description":"Binary file content","example":"binary data"}}}},"403":{"description":"You do not have access to this task"},"404":{"description":"The working file or its file does not exist"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Working file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25/file\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/working-files/a24a6ea4-ce75-4665-a070-57453082c25/file\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/output-files/{output_file_id}/file":{"post":{"summary":"Upload an output file","description":"Upload the file of an output file to the storage. Send the file in a multipart form. You must be in the project team, and be a manager of the project or have a task on the entity of the output file. A client cannot upload it. The upload sets the size and the upload date of the output file.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"File to upload","example":"file content"}}}}}},"responses":{"201":{"description":"The output file, with its new size and upload date","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"You do not have access to this output file"},"404":{"description":"The output file does not exist"}},"parameters":[{"in":"path","name":"output_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Output file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"]},"get":{"summary":"Download an output file","description":"Download the file of an output file from the storage. You must be in the project team. A client cannot download it. A manager or a supervisor of the project downloads every output file of the project. An artist or a vendor downloads the output files of the entities they have a task on, and of the assets cast in these entities.","responses":{"200":{"description":"The file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","description":"Binary file content","example":"binary data"}}}},"403":{"description":"You do not have access to this output file"},"404":{"description":"The output file or its file does not exist"}},"parameters":[{"in":"path","name":"output_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Output file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"]}},"/actions/working-files/{working_file_id}/comment":{"put":{"summary":"Change the comment of a working file","description":"Change the comment of a working file. You must be able to do actions on the task. A client of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["comment"],"properties":{"comment":{"type":"string","description":"Working file comment","example":"Updated lighting and materials"}}}}}},"responses":{"200":{"description":"The updated working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"comment":{"type":"string","description":"Updated comment","example":"Updated lighting and materials"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The comment is missing"},"403":{"description":"You cannot do actions on this task"},"404":{"description":"The working file does not exist"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Working file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/working-files/a24a6ea4-ce75-4665-a070-57453082c25/comment\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"comment\": \"Updated lighting and materials\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/working-files/a24a6ea4-ce75-4665-a070-57453082c25/comment\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"comment\": \"Updated lighting and materials\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/working-files/{working_file_id}/modified":{"put":{"summary":"Mark a working file as modified","description":"Set the modification date of a working file to the current date. You must be able to do actions on the task. A client of the project cannot use this route.","responses":{"200":{"description":"The updated working file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Working file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"updated_at":{"type":"string","format":"date-time","description":"Updated modification timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You cannot do actions on this task"},"404":{"description":"The working file does not exist"}},"parameters":[{"in":"path","name":"working_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Working file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Files"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/working-files/a24a6ea4-ce75-4665-a070-57453082c25/modified\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/working-files/a24a6ea4-ce75-4665-a070-57453082c25/modified\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/persons":{"post":{"summary":"Import Shotgun persons","description":"Import persons from Shotgun. Send a JSON list of Shotgun rows. A person that exists in Kitsu, with the same Shotgun identifier or the same email, is not changed, but their department is set to the department of the row. Else, the person is created. The role is manager or admin when permission_rule_set.name is Manager or Admin, user otherwise. A row with the email changeme@email.com is skipped. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the person","example":12345},"firstname":{"type":"string","description":"First name","example":"John"},"lastname":{"type":"string","description":"Last name","example":"Doe"},"email":{"type":"string","format":"email","description":"Email address","example":"john.doe@example.com"},"login":{"type":"string","description":"Desktop login","example":"jdoe"},"sg_status_list":{"type":"string","description":"Status list","example":"act"},"permission_rule_set":{"type":"object","description":"Permission rule set","properties":{"name":{"type":"string","example":"Manager"}}},"department":{"type":"object","description":"Department information","properties":{"name":{"type":"string","example":"Animation"}}}}}},"example":[{"id":12345,"firstname":"John","lastname":"Doe","email":"john.doe@example.com","login":"jdoe","sg_status_list":"act","permission_rule_set":{"name":"Manager"},"department":{"name":"Animation"}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","description":"First name","example":"John"},"last_name":{"type":"string","description":"Last name","example":"Doe"},"email":{"type":"string","format":"email","description":"Email address","example":"john.doe@example.com"},"role":{"type":"string","description":"User role","example":"manager"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/persons\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"firstname\": \"John\",\n    \"lastname\": \"Doe\",\n    \"email\": \"john.doe@example.com\",\n    \"login\": \"jdoe\",\n    \"sg_status_list\": \"act\",\n    \"permission_rule_set\": {\n      \"name\": \"Manager\"\n    },\n    \"department\": {\n      \"name\": \"Animation\"\n    }\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/persons\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"firstname\": \"John\",\n        \"lastname\": \"Doe\",\n        \"email\": \"john.doe@example.com\",\n        \"login\": \"jdoe\",\n        \"sg_status_list\": \"act\",\n        \"permission_rule_set\": {\n            \"name\": \"Manager\"\n        },\n        \"department\": {\n            \"name\": \"Animation\"\n        }\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/projects":{"post":{"summary":"Import Shotgun projects","description":"Import projects from Shotgun. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the project","example":12345},"name":{"type":"string","description":"Project name","example":"My Project"},"sg_status":{"type":"string","description":"Project status","example":"Active"}}}},"example":[{"id":12345,"name":"My Project","sg_status":"Active"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"data":{"type":"object","description":"Custom project data","example":{}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/projects\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"name\": \"My Project\",\n    \"sg_status\": \"Active\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/projects\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"name\": \"My Project\",\n        \"sg_status\": \"Active\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/episodes":{"post":{"summary":"Import Shotgun episodes","description":"Import episodes from Shotgun. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. A row whose project is not in Kitsu is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the episode","example":12345},"code":{"type":"string","description":"Episode code","example":"EP01"},"description":{"type":"string","description":"Episode description","example":"First episode"},"project":{"type":"object","description":"Project information","properties":{"name":{"type":"string","example":"My Project"}}}}}},"example":[{"id":12345,"code":"EP01","description":"First episode","project":{"name":"My Project"}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Episode unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Episode name","example":"EP01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/episodes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"EP01\",\n    \"description\": \"First episode\",\n    \"project\": {\n      \"name\": \"My Project\"\n    }\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/episodes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"EP01\",\n        \"description\": \"First episode\",\n        \"project\": {\n            \"name\": \"My Project\"\n        }\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/sequences":{"post":{"summary":"Import Shotgun sequences","description":"Import sequences from Shotgun. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. A row whose project is not in Kitsu is skipped. A row whose name, episode and project match another sequence is skipped. If the sequence exists with the same Shotgun identifier and another sequence has the same name, only its description and Shotgun identifier are updated. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the sequence","example":12345},"code":{"type":"string","description":"Sequence code","example":"SQ01"},"description":{"type":"string","description":"Sequence description","example":"Main sequence"},"project":{"type":"object","description":"Project information","properties":{"name":{"type":"string","example":"My Project"}}},"episode":{"type":"object","description":"Episode information","properties":{"id":{"type":"integer","example":11111}}}}}},"example":[{"id":12345,"code":"SQ01","description":"Main sequence","project":{"name":"My Project"},"episode":{"id":11111}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Sequence unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Sequence name","example":"SQ01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/sequences\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"SQ01\",\n    \"description\": \"Main sequence\",\n    \"project\": {\n      \"name\": \"My Project\"\n    },\n    \"episode\": {\n      \"id\": 11111\n    }\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"SQ01\",\n        \"description\": \"Main sequence\",\n        \"project\": {\n            \"name\": \"My Project\"\n        },\n        \"episode\": {\n            \"id\": 11111\n        }\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/shots":{"post":{"summary":"Import Shotgun shots","description":"Import shots from Shotgun. The route also sets the frames, the custom fields and the casting of each shot. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the shot","example":12345},"code":{"type":"string","description":"Shot code","example":"SH010"},"sg_cut_in":{"type":"integer","description":"Cut in frame","example":1001},"sg_cut_duration":{"type":"integer","description":"Cut duration in frames","example":50},"project":{"type":"object","description":"Project information","properties":{"name":{"type":"string","example":"My Project"}}},"sg_sequence":{"type":"object","description":"Sequence information","properties":{"id":{"type":"integer","example":11111}}},"sg_scene":{"type":"object","description":"Scene information","properties":{"id":{"type":"integer","example":22222}}},"assets":{"type":"array","description":"Linked assets","items":{"type":"object","properties":{"id":{"type":"integer","example":33333}}}}}}},"example":[{"id":12345,"code":"SH010","sg_cut_in":1001,"sg_cut_duration":50,"project":{"name":"My Project"},"sg_sequence":{"id":11111},"sg_scene":{"id":22222},"assets":[{"id":33333}]}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Shot name","example":"SH010"},"data":{"type":"object","description":"Shot data with frame ranges and custom fields","example":{"frame_in":1001,"frame_out":1051}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"SH010\",\n    \"sg_cut_in\": 1001,\n    \"sg_cut_duration\": 50,\n    \"project\": {\n      \"name\": \"My Project\"\n    },\n    \"sg_sequence\": {\n      \"id\": 11111\n    },\n    \"sg_scene\": {\n      \"id\": 22222\n    },\n    \"assets\": [\n      {\n        \"id\": 33333\n      }\n    ]\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"SH010\",\n        \"sg_cut_in\": 1001,\n        \"sg_cut_duration\": 50,\n        \"project\": {\n            \"name\": \"My Project\"\n        },\n        \"sg_sequence\": {\n            \"id\": 11111\n        },\n        \"sg_scene\": {\n            \"id\": 22222\n        },\n        \"assets\": [\n            {\n                \"id\": 33333\n            }\n        ]\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/scenes":{"post":{"summary":"Import Shotgun scenes","description":"Import scenes from Shotgun. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the scene","example":12345},"code":{"type":"string","description":"Scene code","example":"SC01"},"project":{"type":"object","description":"Project information","properties":{"name":{"type":"string","example":"My Project"}}},"sequence_sg_scenes_1_sequences":{"type":"array","description":"Sequences of the scene. The first one becomes the parent of the scene.","items":{"type":"object","properties":{"id":{"type":"integer","example":678}}}}}}},"example":[{"id":12345,"code":"SC01","project":{"name":"My Project"}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Scene unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Scene name","example":"SC01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/scenes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"SC01\",\n    \"project\": {\n      \"name\": \"My Project\"\n    }\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/scenes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"SC01\",\n        \"project\": {\n            \"name\": \"My Project\"\n        }\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/assets":{"post":{"summary":"Import Shotgun assets","description":"Import assets from Shotgun. The route also links each asset to its parent assets. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. A row with no sg_asset_type, or whose project is not in Kitsu, is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the asset","example":12345},"code":{"type":"string","description":"Asset code","example":"Asset01"},"description":{"type":"string","description":"Asset description","example":"Main character asset"},"sg_asset_type":{"type":"string","description":"Asset type name","example":"Character"},"project":{"type":"object","description":"Project information","properties":{"id":{"type":"integer","example":11111}}},"parents":{"type":"array","description":"Parent assets","items":{"type":"object","properties":{"id":{"type":"integer","example":22222}}}}}}},"example":[{"id":12345,"code":"Asset01","description":"Main character asset","sg_asset_type":"Character","project":{"id":11111},"parents":[{"id":22222}]}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Asset name","example":"Asset01"},"description":{"type":"string","description":"Asset description","example":"Main character asset"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/assets\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"Asset01\",\n    \"description\": \"Main character asset\",\n    \"sg_asset_type\": \"Character\",\n    \"project\": {\n      \"id\": 11111\n    },\n    \"parents\": [\n      {\n        \"id\": 22222\n      }\n    ]\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"Asset01\",\n        \"description\": \"Main character asset\",\n        \"sg_asset_type\": \"Character\",\n        \"project\": {\n            \"id\": 11111\n        },\n        \"parents\": [\n            {\n                \"id\": 22222\n            }\n        ]\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/steps":{"post":{"summary":"Import Shotgun steps","description":"Import steps as task types from Shotgun. A step becomes a task type. Send a JSON list of Shotgun rows. A task type that exists in Kitsu, with the same Shotgun identifier or the same name and entity type, is updated. Else, it is created. The department is the first word of the code. The route creates the department if it does not exist. Without entity_type, the task type is for assets. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the step","example":12345},"code":{"type":"string","description":"Step code (used to extract department)","example":"Animation Modeling"},"short_name":{"type":"string","description":"Step short name","example":"mod"},"color":{"type":"string","description":"Color in RGB format","example":"255,128,0"},"entity_type":{"type":"string","description":"Entity type this step applies to","example":"Asset"}}}},"example":[{"id":12345,"code":"Animation Modeling","short_name":"mod","color":"255,128,0","entity_type":"Asset"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Task type name","example":"Animation Modeling"},"short_name":{"type":"string","description":"Task type short name","example":"mod"},"color":{"type":"string","description":"Task type color in hex format","example":"#FF8000"},"for_entity":{"type":"string","description":"Entity type","example":"Asset"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/steps\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"Animation Modeling\",\n    \"short_name\": \"mod\",\n    \"color\": \"255,128,0\",\n    \"entity_type\": \"Asset\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/steps\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"Animation Modeling\",\n        \"short_name\": \"mod\",\n        \"color\": \"255,128,0\",\n        \"entity_type\": \"Asset\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/status":{"post":{"summary":"Import Shotgun task statuses","description":"Import task statuses from Shotgun. A status becomes a task status. Send a JSON list of Shotgun rows. A task status that exists in Kitsu, with the same Shotgun identifier or the same short name, is updated. Else, it is created. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the status","example":12345},"name":{"type":"string","description":"Status name","example":"In Progress"},"code":{"type":"string","description":"Status short code","example":"IP"},"bg_color":{"type":"string","description":"Background color in RGB format","example":"255,128,0"}}}},"example":[{"id":12345,"name":"In Progress","code":"IP","bg_color":"255,128,0"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task status unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Status name","example":"In Progress"},"short_name":{"type":"string","description":"Status short code","example":"IP"},"color":{"type":"string","description":"Status color in hex format","example":"#FF8000"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"name\": \"In Progress\",\n    \"code\": \"IP\",\n    \"bg_color\": \"255,128,0\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"name\": \"In Progress\",\n        \"code\": \"IP\",\n        \"bg_color\": \"255,128,0\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/tasks":{"post":{"summary":"Import Shotgun tasks","description":"Import tasks from Shotgun. The route imports only the tasks that have a step and a project. Send a JSON list of Shotgun rows. A task that exists in Kitsu, with the same Shotgun identifier or the same name, project, step and entity, is updated. Else, it is created. A row with an assignee that is not in Kitsu is skipped. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the task","example":12345},"cached_display_name":{"type":"string","description":"Task display name","example":"Modeling for Asset"},"start_date":{"type":"string","format":"date","description":"Start date","example":"2024-01-15"},"due_date":{"type":"string","format":"date","description":"Due date","example":"2024-02-15"},"sg_sort_order":{"type":"integer","description":"Sort order","example":1},"duration":{"type":"integer","description":"Duration in days","example":30},"step":{"type":"object","description":"Step (task type) information","properties":{"id":{"type":"integer","example":11111}}},"project":{"type":"object","description":"Project information","properties":{"id":{"type":"integer","example":22222}}},"entity":{"type":"object","description":"Entity information","properties":{"id":{"type":"integer","example":33333},"type":{"type":"string","example":"Asset"}}},"sg_status_list":{"type":"string","description":"Status short name","example":"IP"},"created_by":{"type":"object","description":"Creator information","properties":{"id":{"type":"integer","example":44444}}},"task_assignees":{"type":"array","description":"Task assignees","items":{"type":"object","properties":{"id":{"type":"integer","example":55555}}}}}}},"example":[{"id":12345,"cached_display_name":"Modeling for Asset","start_date":"2024-01-15","due_date":"2024-02-15","sg_sort_order":1,"duration":30,"step":{"id":11111},"project":{"id":22222},"entity":{"id":33333,"type":"Asset"},"sg_status_list":"IP","created_by":{"id":44444},"task_assignees":[{"id":55555}]}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Task name","example":"Modeling for Asset"},"start_date":{"type":"string","format":"date","description":"Start date","example":"2024-01-15"},"due_date":{"type":"string","format":"date","description":"Due date","example":"2024-02-15"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"cached_display_name\": \"Modeling for Asset\",\n    \"start_date\": \"2024-01-15\",\n    \"due_date\": \"2024-02-15\",\n    \"sg_sort_order\": 1,\n    \"duration\": 30,\n    \"step\": {\n      \"id\": 11111\n    },\n    \"project\": {\n      \"id\": 22222\n    },\n    \"entity\": {\n      \"id\": 33333,\n      \"type\": \"Asset\"\n    },\n    \"sg_status_list\": \"IP\",\n    \"created_by\": {\n      \"id\": 44444\n    },\n    \"task_assignees\": [\n      {\n        \"id\": 55555\n      }\n    ]\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"cached_display_name\": \"Modeling for Asset\",\n        \"start_date\": \"2024-01-15\",\n        \"due_date\": \"2024-02-15\",\n        \"sg_sort_order\": 1,\n        \"duration\": 30,\n        \"step\": {\n            \"id\": 11111\n        },\n        \"project\": {\n            \"id\": 22222\n        },\n        \"entity\": {\n            \"id\": 33333,\n            \"type\": \"Asset\"\n        },\n        \"sg_status_list\": \"IP\",\n        \"created_by\": {\n            \"id\": 44444\n        },\n        \"task_assignees\": [\n            {\n                \"id\": 55555\n            }\n        ]\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/versions":{"post":{"summary":"Import Shotgun versions","description":"Import versions as preview files from Shotgun. The route imports only the versions that are linked to a task. A version becomes a preview file. Send a JSON list of Shotgun rows. A preview file that exists in Kitsu, with the same Shotgun identifier or the same name and task, is updated. Else, it is created. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the version","example":12345},"code":{"type":"string","description":"Version code","example":"v001"},"description":{"type":"string","description":"Version description","example":"First version"},"sg_task":{"type":"object","description":"Task information","properties":{"id":{"type":"integer","example":11111}}},"user":{"type":"object","description":"User information","properties":{"id":{"type":"integer","example":22222}}},"sg_uploaded_movie":{"type":"object","description":"Uploaded movie information","properties":{"url":{"type":"string","example":"https://example.com/movie.mp4"},"name":{"type":"string","example":"movie.mp4"}}}}}},"example":[{"id":12345,"code":"v001","description":"First version","sg_task":{"id":11111},"user":{"id":22222},"sg_uploaded_movie":{"url":"https://example.com/movie.mp4","name":"movie.mp4"}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Preview file name","example":"v001"},"description":{"type":"string","description":"Preview file description","example":"First version"},"source":{"type":"string","description":"Source of the preview","example":"Shotgun"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/versions\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"code\": \"v001\",\n    \"description\": \"First version\",\n    \"sg_task\": {\n      \"id\": 11111\n    },\n    \"user\": {\n      \"id\": 22222\n    },\n    \"sg_uploaded_movie\": {\n      \"url\": \"https://example.com/movie.mp4\",\n      \"name\": \"movie.mp4\"\n    }\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/versions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"code\": \"v001\",\n        \"description\": \"First version\",\n        \"sg_task\": {\n            \"id\": 11111\n        },\n        \"user\": {\n            \"id\": 22222\n        },\n        \"sg_uploaded_movie\": {\n            \"url\": \"https://example.com/movie.mp4\",\n            \"name\": \"movie.mp4\"\n        }\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/notes":{"post":{"summary":"Import Shotgun notes","description":"Import notes as comments from Shotgun. The route imports only the notes whose first task exists in Kitsu. Send a JSON list of Shotgun rows. A row that exists in Kitsu, with the same Shotgun identifier, is updated. Else, it is created. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the note","example":12345},"content":{"type":"string","description":"Note content","example":"This is a comment"},"tasks":{"type":"array","description":"Linked tasks","items":{"type":"object","properties":{"id":{"type":"integer","example":67890}}}},"user":{"type":"object","description":"User who created the note","properties":{"id":{"type":"integer","example":11111}}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"}}}},"example":[{"id":12345,"content":"This is a comment","tasks":[{"id":67890}],"user":{"id":11111},"created_at":"2024-01-15T10:30:00Z"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Comment unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","description":"Comment text","example":"This is a comment"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/notes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"content\": \"This is a comment\",\n    \"tasks\": [\n      {\n        \"id\": 67890\n      }\n    ],\n    \"user\": {\n      \"id\": 11111\n    },\n    \"created_at\": \"2024-01-15T10:30:00Z\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/notes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"content\": \"This is a comment\",\n        \"tasks\": [\n            {\n                \"id\": 67890\n            }\n        ],\n        \"user\": {\n            \"id\": 11111\n        },\n        \"created_at\": \"2024-01-15T10:30:00Z\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/errors":{"post":{"summary":"Save a Shotgun import error","description":"Save an error of a Shotgun import. The body is kept as the data of the error. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Error event data","properties":{"error":{"type":"string","description":"Error message","example":"Failed to import asset"},"details":{"type":"object","description":"Additional error details","example":{"shotgun_id":12345,"reason":"Missing field"}}},"example":{"error":"Failed to import asset","details":{"shotgun_id":12345,"reason":"Missing required field"}}}}}},"responses":{"201":{"description":"The new import error","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Import error unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"source":{"type":"string","description":"Source of the import error","example":"shotgun"},"event_data":{"type":"object","description":"Error event data","example":{"error":"Failed to import asset"}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"Invalid request body"},"403":{"description":"You are not an administrator"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/errors\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"error\": \"Failed to import asset\",\n  \"details\": {\n    \"shotgun_id\": 12345,\n    \"reason\": \"Missing required field\"\n  }\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/errors\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"error\": \"Failed to import asset\",\n    \"details\": {\n        \"shotgun_id\": 12345,\n        \"reason\": \"Missing required field\"\n    }\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the Shotgun import errors","description":"Get the errors of the Shotgun imports. You must be an administrator.","responses":{"200":{"description":"The list of import errors","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Import error unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"source":{"type":"string","description":"Source of the import error","example":"shotgun"},"event_data":{"type":"object","description":"Error event data","example":{"error":"Import failed"}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"}}}}}}},"403":{"description":"You are not an administrator"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/import/shotgun/errors\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/errors\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/project-connections":{"post":{"summary":"Import Shotgun team members","description":"Import team members from Shotgun. Each row adds a person to the team of a project. Send a JSON list of Shotgun rows. A row that exists in Kitsu is left as is. Else, the person is added to the team of the project. A row whose project or person is not in Kitsu is skipped. The response is the list of the projects. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the connection","example":12345},"project":{"type":"object","description":"Project information","properties":{"id":{"type":"integer","example":11111}}},"user":{"type":"object","description":"User information","properties":{"id":{"type":"integer","example":22222}}}}}},"example":[{"id":12345,"project":{"id":11111},"user":{"id":22222}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"team":{"type":"array","description":"Team member IDs","items":{"type":"string","format":"uuid"},"example":["b35b7fb5-df86-5776-b181-68564193d360"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"]}},"/import/shotgun/projectconnections":{"post":{"summary":"Import Shotgun team members","description":"Import team members from Shotgun. Each row adds a person to the team of a project. Send a JSON list of Shotgun rows. A row that exists in Kitsu is left as is. Else, the person is added to the team of the project. A row whose project or person is not in Kitsu is skipped. The response is the list of the projects. A row that misses a field is skipped. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Shotgun ID of the connection","example":12345},"project":{"type":"object","description":"Project information","properties":{"id":{"type":"integer","example":11111}}},"user":{"type":"object","description":"User information","properties":{"id":{"type":"integer","example":22222}}}}}},"example":[{"id":12345,"project":{"id":11111},"user":{"id":22222}}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"team":{"type":"array","description":"Team member IDs","items":{"type":"string","format":"uuid"},"example":["b35b7fb5-df86-5776-b181-68564193d360"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body is not a list, or a row breaks a database constraint"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/projectconnections\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": 12345,\n    \"project\": {\n      \"id\": 11111\n    },\n    \"user\": {\n      \"id\": 22222\n    }\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/projectconnections\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": 12345,\n        \"project\": {\n            \"id\": 11111\n        },\n        \"user\": {\n            \"id\": 22222\n        }\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/errors/{error_id}":{"delete":{"summary":"Delete a Shotgun import error","description":"Delete an error of a Shotgun import. You must be an administrator.","responses":{"204":{"description":"The import error is deleted"},"403":{"description":"You are not an administrator"},"404":{"description":"The import error does not exist, or the identifier is not valid"}},"parameters":[{"in":"path","name":"error_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the import error","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/import/shotgun/errors/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/errors/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/project":{"post":{"summary":"Remove a Shotgun project","description":"Remove a project that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the project to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed project, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/project\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/project\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/person":{"post":{"summary":"Remove a Shotgun person","description":"Remove a person that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the person to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed person, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/person\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/person\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/shot":{"post":{"summary":"Remove a Shotgun shot","description":"Remove a shot that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the shot to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed shot, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/shot\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/shot\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/scene":{"post":{"summary":"Remove a Shotgun scene","description":"Remove a scene that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the scene to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed scene, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/scene\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/scene\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/episode":{"post":{"summary":"Remove a Shotgun episode","description":"Remove an episode that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the episode to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed episode, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/episode\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/episode\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/sequence":{"post":{"summary":"Remove a Shotgun sequence","description":"Remove a sequence that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the sequence to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed sequence, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/sequence\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/sequence\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/asset":{"post":{"summary":"Remove a Shotgun asset","description":"Remove an asset. If tasks of the asset have working files, the asset is only canceled that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the asset to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed asset, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/asset\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/asset\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/project-connection":{"post":{"summary":"Remove a Shotgun team member","description":"Remove a person from the team of a project that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the connection to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"]}},"/import/shotgun/remove/projectconnection":{"post":{"summary":"Remove a Shotgun team member","description":"Remove a person from the team of a project that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the connection to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/projectconnection\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/projectconnection\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/step":{"post":{"summary":"Remove a Shotgun step","description":"Remove a step, a task type in Kitsu that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the step to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed step, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/step\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/step\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/status":{"post":{"summary":"Remove a Shotgun task status","description":"Remove a task status that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the task status to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed task status, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/task":{"post":{"summary":"Remove a Shotgun task","description":"Remove a task that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the task to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed task, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/task\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/task\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/note":{"post":{"summary":"Remove a Shotgun note","description":"Remove a note, a comment in Kitsu that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the note to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed note, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/note\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/note\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/shotgun/remove/version":{"post":{"summary":"Remove a Shotgun version","description":"Remove a version, a preview file in Kitsu that was imported from Shotgun. Send the Shotgun identifier of the row in the body. If no row has this identifier, the response is a success. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer","description":"Shotgun ID of the version to remove","example":12345}}},"example":{"id":12345}}}},"responses":{"200":{"description":"The result of the removal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the removal was successful","example":true},"removed_instance_id":{"type":"string","format":"uuid","description":"ID of the removed version, if found","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not JSON"},"403":{"description":"You are not an administrator"},"500":{"description":"The body has no id, or the id is not an integer"}},"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/shotgun/remove/version\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"id\": 12345\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/shotgun/remove/version\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"id\": 12345\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/persons":{"post":{"summary":"Import persons from a CSV file","description":"Create persons from a CSV file. A line gives the name, email, phone, role, departments, studio, country, contract type, position, seniority, daily salary and active status. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. Without update=true, the lines of the entities that exist are skipped. You must be an administrator.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with person data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The imported lines","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Doe"},"email":{"type":"string","format":"email","example":"john.doe@example.com"},"phone":{"type":"string","example":1234567890},"role":{"type":"string","example":"user"},"departments":{"type":"array","items":{"type":"string","format":"uuid"},"example":[]},"studio_id":{"type":"string","format":"uuid","example":null},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code (nullable)","example":"FR"},"contract_type":{"type":"string","example":"open-ended"},"position":{"type":"string","example":"lead"},"seniority":{"type":"string","example":"senior"},"daily_salary":{"type":"integer","example":320},"active":{"type":"boolean","example":true}}}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"update","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Update the entities that exist"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/persons?update=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/persons\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"update\": false\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/projects/{project_id}/assets":{"post":{"summary":"Import assets from a CSV file","description":"Create assets in a project from a CSV file. A line can also set the metadata and the task statuses of an asset. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. Without update=true, an asset that exists is not changed, but the route creates the tasks it misses. The route creates only the tasks that the workflow of the asset type accepts. You must be a manager of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with asset data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The imported lines","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Character A"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_type_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"Main character asset"}}}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"update","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Update the entities that exist"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets?update=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"update\": false\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/projects/{project_id}/shots":{"post":{"summary":"Import shots from a CSV file","description":"Create shots in a project from a CSV file. A line gives the episode, the sequence, the frames, the metadata and the task statuses of a shot. The route creates the missing episodes and sequences. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. Without update=true, the lines of the entities that exist are skipped. You must be a manager of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with shot data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The imported lines","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":120},"description":{"type":"string","example":"Shot description"}}}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"update","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Update the entities that exist"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots?update=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"update\": false\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/projects/{project_id}/edits":{"post":{"summary":"Import edits from a CSV file","description":"Create edits in a project from a CSV file. A line can also set the metadata and the task statuses of an edit. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. Without update=true, the lines of the entities that exist are skipped. You must be a manager of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with edit data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The imported lines","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Edit_001"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"Edit description"}}}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"update","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Update the entities that exist"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits?update=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"update\": false\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/projects/{project_id}/casting":{"post":{"summary":"Import a casting from a CSV file","description":"Set the casting of the shots, the episodes or the assets of a project from a CSV file. A link that exists is updated. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. You must be a manager of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with casting link data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"One null value per imported line","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","nullable":true}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/casting?update=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/casting\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"update\": false\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/projects/{project_id}/task-types/{task_type_id}/estimations":{"post":{"summary":"Import task estimations from a CSV file","description":"Set the estimations, the dates and the other values of the tasks of a task type from a CSV file. Each line gives one entity. The columns are Parent, Entity, Estimation, Drawings, Start date, Due date, Difficulty and the names of the task metadata descriptors of the task type. For an asset task type, Parent is the asset type and Entity is the asset. For a shot task type, Parent is the sequence and Entity is the shot. For a sequence or an edit task type, Parent is the name of its episode, or empty to match any episode, and Entity is the sequence or the edit. For an episode task type, Entity is the episode and the route ignores Parent. When several entities match a line, the ones with the exact name win, then the ones that are not canceled. If a line still matches several entities, the route refuses it. The route does not support concept task types. The Estimation column is in hours when the organisation shows durations in hours, in days otherwise. Dates use the YYYY-MM-DD format. If Due date is empty and Start date and Estimation are set, the route computes the due date from them. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. You must be an administrator, a manager of the project, or a supervisor of the project. A supervisor must have no department, or the department of the task type must be one of their departments.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with task estimation data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"One null value per imported line","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","nullable":true}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You cannot change the tasks of this task type"},"404":{"description":"The project or the task type does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"b24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b24a6ea4-ce75-4665-a070-57453082c25/estimations\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b24a6ea4-ce75-4665-a070-57453082c25/estimations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/csv/projects/{project_id}/episodes/{episode_id}/task-types/{task_type_id}/estimations":{"post":{"summary":"Import task estimations of an episode from a CSV file","description":"Set the estimations, the dates and the other values of the tasks of a task type from a CSV file. Each line gives one entity. The columns are Parent, Entity, Estimation, Drawings, Start date, Due date, Difficulty and the names of the task metadata descriptors of the task type. The route changes only the tasks of the episode. Use main for the entities without episode and all for every entity of the project. For an asset task type, Parent is the asset type and Entity is the asset, among the assets of the episode and the ones cast into it. For a shot task type, Parent is the sequence and Entity is the shot, among the shots of the episode. For a sequence or an edit task type, Entity is the sequence or the edit, among the ones of the episode. Parent is empty or the name of the episode. With main, Parent is empty. With all, Parent names the episode, or is empty to match any episode. For an episode task type, Entity is the episode, and the route ignores Parent and the episode of the route. When several entities match a line, the ones with the exact name win, then the ones that are not canceled, then the assets of the episode over the ones cast into it. If a line still matches several entities, the route refuses it. The route does not support concept task types. The Estimation column is in hours when the organisation shows durations in hours, in days otherwise. Dates use the YYYY-MM-DD format. If Due date is empty and Start date and Estimation are set, the route computes the due date from them. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. You must be an administrator, a manager of the project, or a supervisor of the project. A supervisor must have no department, or the department of the task type must be one of their departments.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"CSV file with task estimation data","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"One null value per imported line","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","nullable":true}}}}},"400":{"description":"A line of the file is not valid. The lines before this line are imported.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"},"line_number":{"type":"integer","description":"Number of the line that is not valid"},"imported_rows":{"type":"integer","description":"Number of lines that are imported"}}}}}},"403":{"description":"You cannot change the tasks of this task type"},"404":{"description":"The project or the task type does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"b24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"},{"in":"path","name":"episode_id","required":true,"schema":{"type":"string"},"description":"Unique identifier of the episode, or main, or all. Another value gives a 400.","example":"c24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/c24a6ea4-ce75-4665-a070-57453082c25/task-types/b24a6ea4-ce75-4665-a070-57453082c25/estimations\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/c24a6ea4-ce75-4665-a070-57453082c25/task-types/b24a6ea4-ce75-4665-a070-57453082c25/estimations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/otio/projects/{project_id}":{"post":{"summary":"Import a timeline file into a project","description":"Set frame_in, frame_out and nb_frames of the shots of a project from a timeline file. Send the file in a multipart form. The route can read all the formats of OpenTimelineIO, for example OTIO or EDL. The naming convention gives the name of each shot of the file. The route creates the missing shots. You must be a manager of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"OTIO file to import (EDL, OTIO, etc.)","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The updated shots","content":{"application/json":{"schema":{"type":"object","properties":{"updated_shots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":120},"data":{"type":"object","properties":{"frame_in":{"type":"integer","example":1001},"frame_out":{"type":"integer","example":1120}}}}}},"created_shots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH020"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":96},"data":{"type":"object","properties":{"frame_in":{"type":"integer","example":2001},"frame_out":{"type":"integer","example":2096}}}}}}}}}}},"400":{"description":"The file is missing or not valid, or a name does not match the naming convention"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"naming_convention","required":false,"schema":{"type":"string","default":"${project_name}_${sequence_name}-${shot_name}"},"example":"${project_name}_${sequence_name}-${shot_name}","description":"Template of the shot names in the file. You can also send it as a form field."},{"in":"query","name":"match_case","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Make a difference between upper case and lower case in the names. You can also send it as a form field."}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/otio/projects/a24a6ea4-ce75-4665-a070-57453082c25?naming_convention=%24%7Bproject_name%7D_%24%7Bsequence_name%7D-%24%7Bshot_name%7D&match_case=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/otio/projects/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"naming_convention\": \"${project_name}_${sequence_name}-${shot_name}\",\n    \"match_case\": true\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/otio/projects/{project_id}/episodes/{episode_id}":{"post":{"summary":"Import a timeline file into an episode","description":"Set frame_in, frame_out and nb_frames of the shots of an episode from a timeline file. The naming convention includes the episode name. Send the file in a multipart form. The route can read all the formats of OpenTimelineIO, for example OTIO or EDL. The naming convention gives the name of each shot of the file. The route creates the missing shots. You must be a manager of the project.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"OTIO file to import (EDL, OTIO, etc.)","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The updated shots","content":{"application/json":{"schema":{"type":"object","properties":{"updated_shots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":120},"data":{"type":"object","properties":{"frame_in":{"type":"integer","example":1001},"frame_out":{"type":"integer","example":1120}}}}}},"created_shots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH020"},"project_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":96},"data":{"type":"object","properties":{"frame_in":{"type":"integer","example":2001},"frame_out":{"type":"integer","example":2096}}}}}}}}}}},"400":{"description":"The file is missing or not valid, or a name does not match the naming convention"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project or the episode does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"episode_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"b24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the episode"},{"in":"query","name":"naming_convention","required":false,"schema":{"type":"string","default":"${project_name}_${episode_name}-${sequence_name}-${shot_name}"},"example":"${project_name}_${episode_name}-${sequence_name}-${shot_name}","description":"Template of the shot names in the file. You can also send it as a form field."},{"in":"query","name":"match_case","required":false,"schema":{"type":"boolean","default":true},"example":true,"description":"Make a difference between upper case and lower case in the names. You can also send it as a form field."}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/otio/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/b24a6ea4-ce75-4665-a070-57453082c25?naming_convention=%24%7Bproject_name%7D_%24%7Bepisode_name%7D-%24%7Bsequence_name%7D-%24%7Bshot_name%7D&match_case=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/otio/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/b24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"naming_convention\": \"${project_name}_${episode_name}-${sequence_name}-${shot_name}\",\n    \"match_case\": true\n}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/kitsu/comments":{"post":{"summary":"Import comments from another Kitsu instance","description":"Import comments from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Kitsu ID of the comment","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","description":"Task ID the comment is linked to","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","description":"Comment text","example":"This is a comment"},"person_id":{"type":"string","format":"uuid","description":"Person who created the comment","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","object_id":"b24a6ea4-ce75-4665-a070-57453082c250","text":"This is a comment","person_id":"c24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Comment unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","description":"Comment text","example":"This is a comment"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/kitsu/comments\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"object_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"text\": \"This is a comment\",\n    \"person_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/kitsu/comments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"object_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n        \"text\": \"This is a comment\",\n        \"person_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/kitsu/entities":{"post":{"summary":"Import entities from another Kitsu instance","description":"Import entities: assets, shots, sequences, episodes, edits and concepts, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Kitsu ID of the entity","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Entity name","example":"Asset01"},"project_id":{"type":"string","format":"uuid","description":"Project ID","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_type_id":{"type":"string","format":"uuid","description":"Entity type ID","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Asset01","project_id":"b24a6ea4-ce75-4665-a070-57453082c250","entity_type_id":"c24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Entity name","example":"Asset01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/kitsu/entities\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"Asset01\",\n    \"project_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_type_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/kitsu/entities\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"name\": \"Asset01\",\n        \"project_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n        \"entity_type_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/kitsu/entity-links":{"post":{"summary":"Import casting links from another Kitsu instance","description":"Import casting links from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Kitsu ID of the entity link","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_in_id":{"type":"string","format":"uuid","description":"Source entity ID","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_out_id":{"type":"string","format":"uuid","description":"Target entity ID","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","entity_in_id":"b24a6ea4-ce75-4665-a070-57453082c250","entity_out_id":"c24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Entity link unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_in_id":{"type":"string","format":"uuid","description":"Source entity ID","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_out_id":{"type":"string","format":"uuid","description":"Target entity ID","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/kitsu/entity-links\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_in_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_out_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/kitsu/entity-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"entity_in_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n        \"entity_out_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/kitsu/projects":{"post":{"summary":"Import projects from another Kitsu instance","description":"Import projects from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Kitsu ID of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"production_type":{"type":"string","description":"Production type","example":"tvshow"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"My Project","production_type":"tvshow"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/kitsu/projects\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"My Project\",\n    \"production_type\": \"tvshow\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/kitsu/projects\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"name\": \"My Project\",\n        \"production_type\": \"tvshow\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/kitsu/tasks":{"post":{"summary":"Import tasks from another Kitsu instance","description":"Import tasks from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Kitsu ID of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Task name","example":"Modeling"},"project_id":{"type":"string","format":"uuid","description":"Project ID","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Entity ID the task is linked to","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type ID","example":"d24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Modeling","project_id":"b24a6ea4-ce75-4665-a070-57453082c250","entity_id":"c24a6ea4-ce75-4665-a070-57453082c250","task_type_id":"d24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Task name","example":"Modeling"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Update timestamp","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/import/kitsu/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  {\n    \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"Modeling\",\n    \"project_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n    \"entity_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"d24a6ea4-ce75-4665-a070-57453082c25\"\n  }\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/import/kitsu/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    {\n        \"id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"name\": \"Modeling\",\n        \"project_id\": \"b24a6ea4-ce75-4665-a070-57453082c25\",\n        \"entity_id\": \"c24a6ea4-ce75-4665-a070-57453082c25\",\n        \"task_type_id\": \"d24a6ea4-ce75-4665-a070-57453082c25\"\n    }\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/import/kitsu/attachment-files":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/build-jobs":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/metadata-descriptors":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/milestones":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/news":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/notifications":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/playlists":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/preview-files":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/schedule-items":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/subscriptions":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/import/kitsu/time-spents":{"post":{"summary":"Import rows from another Kitsu instance","description":"Import rows, for example preview files, time spents, playlists, milestones, notifications or attachment files, from another Kitsu instance. Synchronization tools use this route to copy data from another Kitsu instance. Send a JSON list of rows, with their identifiers. A row that exists is updated. Else, it is created. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Resource name"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}},"example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","name":"Example resource","project_id":"b24a6ea4-ce75-4665-a070-57453082c250"}]}}},"responses":{"200":{"description":"The created and updated rows","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Imported resource"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"400":{"description":"The body is not a list, or a row breaks a database constraint"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"silent","required":false,"description":"Do not send an event for each imported row. Use it for large imports.","schema":{"type":"boolean","default":false}}],"tags":["Import"]}},"/":{"get":{"summary":"Get the API name and version","description":"Get the name and the version of the API. You do not need a token for this route.","responses":{"200":{"description":"The name and the version of the API","content":{"application/json":{"schema":{"type":"object","properties":{"api":{"type":"string"},"version":{"type":"string"}}}}}}},"tags":["Index"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/status":{"get":{"summary":"Get the status of the services","description":"Get the status of the services of the API: the database, the key value store, the event stream, the job queue and the indexer. A service is up if the API can connect to it. The job queue is up if one worker or more is available. You do not need a token for this route.","responses":{"200":{"description":"The name, the version and the status of each service","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"version":{"type":"string"},"database-up":{"type":"boolean"},"key-value-store-up":{"type":"boolean"},"event-stream-up":{"type":"boolean"},"job-queue-up":{"type":"boolean"},"indexer-up":{"type":"boolean"}}}}}}},"tags":["Index"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/status/influx":{"get":{"summary":"Get the status of the services for InfluxDB","description":"Get the status of the services of the API in a format for InfluxDB. The value is 1 when the service is up and 0 when the service is down. You do not need a token for this route.","responses":{"200":{"description":"The status of each service and the time","content":{"application/json":{"schema":{"type":"object","properties":{"database-up":{"type":"integer","enum":[0,1]},"key-value-store-up":{"type":"integer","enum":[0,1]},"event-stream-up":{"type":"integer","enum":[0,1]},"job-queue-up":{"type":"integer","enum":[0,1]},"indexer-up":{"type":"integer","enum":[0,1]},"time":{"type":"number","description":"UNIX timestamp"}}}}}}},"tags":["Index"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/status/influx\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/status/influx\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/status/resources":{"get":{"summary":"Get the resource usage","description":"Get the CPU usage of each core, the load average, the memory usage and the number of running jobs. The number of jobs is 0 if the job queue is disabled. You do not need a token for this route.","responses":{"200":{"description":"The CPU, memory and job statistics","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string"},"cpu":{"type":"object","properties":{"percent":{"type":"array","items":{"type":"number"}},"loadavg":{"type":"object"}}},"memory":{"type":"object","properties":{"total":{"type":"number"},"used":{"type":"number"},"available":{"type":"number"},"percent":{"type":"number"}}},"jobs":{"type":"object","properties":{"running_jobs":{"type":"integer"}}}}}}}}},"tags":["Index"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/status/resources\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/status/resources\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/status.txt":{"get":{"summary":"Get the status of the services as text","description":"Get the status of the services of the API as plain text. Each line gives one service and the value up or down. You do not need a token for this route.","responses":{"200":{"description":"The status as text","content":{"text/plain":{"schema":{"type":"string","example":"name: Zou\nversion: 1.0.0\ndatabase-up: up\n"}}}}},"tags":["Index"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/status.txt\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/status.txt\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/status/test-event":{"get":{"summary":"Send a test event","description":"Send a main:test event to the event stream. Use this route to test an event listener, for example the Python client. You must be an administrator.","responses":{"200":{"description":"The event is sent","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}}}}}},"403":{"description":"You are not an administrator"}},"tags":["Index"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/status/test-event\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/status/test-event\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/stats":{"get":{"summary":"Get the usage statistics","description":"Get the number of projects, assets, shots, tasks and persons. You must be an administrator.","responses":{"200":{"description":"The usage statistics","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"403":{"description":"You are not an administrator"}},"tags":["Index"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/stats\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/stats\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/config":{"get":{"summary":"Get the configuration of the instance","description":"Get the configuration that Kitsu needs before login: SSO, 2FA, indexer, locale, timezone, theme and movie bitrates. If Sentry is enabled for Kitsu, the response also gives the Sentry settings. You do not need a token for this route.","responses":{"200":{"description":"The configuration","content":{"application/json":{"schema":{"type":"object","properties":{"is_self_hosted":{"type":"boolean"},"dark_theme_by_default":{"type":"boolean"},"indexer_configured":{"type":"boolean"},"saml_enabled":{"type":"boolean"},"oidc_enabled":{"type":"boolean"},"enforce_2fa":{"type":"boolean"},"preview_accounts_enabled":{"type":"boolean"},"crisp_token":{"type":"string"},"saml_idp_name":{"type":"string"},"oidc_idp_name":{"type":"string"},"default_locale":{"type":"string"},"default_timezone":{"type":"string"},"movie_highdef_bitrate":{"type":"integer"},"movie_lowdef_bitrate":{"type":"integer"},"sentry":{"type":"object","properties":{"dsn":{"type":"string"},"sampleRate":{"type":"number"}}}}}}}}},"tags":["Index"],"security":[],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/config\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/config\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/news":{"get":{"summary":"Get the news of the open projects","description":"Get the last news of the open projects that you can access, the newest first. A news is made when a comment is posted on a task. Give project_id to get the news of one project. If you cannot access this project, the route gives the news of all your open projects. Clients cannot use this route.","responses":{"200":{"description":"A page of news, with the statistics of the news","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"stats":{"type":"object","description":"Number of news for each task status"},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}}},"400":{"description":"A date is not valid"},"403":{"description":"You are a client"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this open project"},{"in":"query","name":"before","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get the news before this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00"},{"in":"query","name":"after","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get the news after this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":1},"example":1,"description":"Page to get"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50},"example":50,"description":"Number of news in a page"},{"in":"query","name":"person_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this author"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this task type"},{"in":"query","name":"task_status_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this task status"},{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this episode"},{"in":"query","name":"only_preview","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Get only the news with a preview"}],"tags":["News"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/news?project_id=a24a6ea4-ce75-4665-a070-57453082c25&before=2022-07-12&after=2022-07-12&page=1&limit=50&person_id=a24a6ea4-ce75-4665-a070-57453082c25&task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&task_status_id=a24a6ea4-ce75-4665-a070-57453082c25&episode_id=a24a6ea4-ce75-4665-a070-57453082c25&only_preview=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/news\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"before\": \"2022-07-12\",\n    \"after\": \"2022-07-12\",\n    \"page\": 1,\n    \"limit\": 50,\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"only_preview\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/news":{"get":{"summary":"Get the news of a project","description":"Get the last news of a project, the newest first. A news is made when a comment is posted on a task. Clients cannot use this route.","responses":{"200":{"description":"A page of news, with the statistics of the news","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"stats":{"type":"object","description":"Number of news for each task status"},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"page":{"type":"integer"}}}}}},"400":{"description":"A date is not valid"},"403":{"description":"You do not have access to this project, or you are a client"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"before","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get the news before this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00"},{"in":"query","name":"after","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get the news after this date. Date in the ISO 8601 format, for example 2026-10-28T10:00:00"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":1},"example":1,"description":"Page to get"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":50},"example":50,"description":"Number of news in a page"},{"in":"query","name":"person_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this author"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this task type"},{"in":"query","name":"task_status_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this task status"},{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the news of this episode"},{"in":"query","name":"only_preview","required":false,"schema":{"type":"boolean","default":false},"example":false,"description":"Get only the news with a preview"}],"tags":["News"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/news?before=2022-07-12&after=2022-07-12&page=1&limit=50&person_id=a24a6ea4-ce75-4665-a070-57453082c25&task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&task_status_id=a24a6ea4-ce75-4665-a070-57453082c25&episode_id=a24a6ea4-ce75-4665-a070-57453082c25&only_preview=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/news\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"before\": \"2022-07-12\",\n    \"after\": \"2022-07-12\",\n    \"page\": 1,\n    \"limit\": 50,\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"only_preview\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/news/{news_id}":{"get":{"summary":"Get a news of a project","description":"Get a news of a project. Clients and vendors cannot use this route.","responses":{"200":{"description":"The news"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The project or the news does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"news_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the news item"}],"tags":["News"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/news/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/news/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/desktop-login-logs":{"post":{"summary":"Add a desktop login of a person","description":"Add a login log of a desktop tool for a person. Without date, the log uses the current date. You can add logs for yourself only. An administrator can add logs for all persons.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"Login date","example":"2022-07-12"}}}}}},"responses":{"201":{"description":"The new desktop login log","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Log entry unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"date":{"type":"string","format":"date-time","description":"Login date and time","example":"2022-07-12T10:30:00Z"}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot add logs for this person"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/desktop-login-logs\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"date\": \"2022-07-12\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/desktop-login-logs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"date\": \"2022-07-12\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the desktop logins of a person","description":"Get the login logs of the desktop tools of a person. A manager can read the logs of all persons. Other users can read their own logs only.","responses":{"200":{"description":"The list of desktop login logs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Log entry unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"date":{"type":"string","format":"date-time","description":"Login date and time","example":"2022-07-12T10:30:00Z"}}}}}}},"403":{"description":"You cannot read the logs of this person"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/desktop-login-logs\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/desktop-login-logs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/presence-logs/{month_date}":{"get":{"summary":"Get the presence logs of a month","description":"Get a CSV file with the presence of each active person for each day of a month. One row per person, one column per day. Inactive persons and guests are not in the file. You must be an administrator.","responses":{"200":{"description":"The CSV file","content":{"text/csv":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The month is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"path","name":"month_date","required":true,"schema":{"type":"string","format":"date"},"description":"Month in the YYYY-MM format","example":"2022-07"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/presence-logs/2022-07\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/presence-logs/2022-07\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents":{"get":{"summary":"Get the time spents of a person","description":"Get the time spent entries of a person for a period. Give both start_date and end_date. Without them, the route returns all the entries. An administrator and the person get all the entries. A manager gets the entries of the projects they manage. A supervisor gets the entries of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. Other users cannot read the time spents of other persons. You cannot read the time spents of a bot. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"project_id":{"type":"string","format":"uuid","description":"Project of the task","example":"d57d91d7-f1a8-7998-d3a3-8a786315f581"},"task_type_id":{"type":"string","format":"uuid","description":"Task type of the task","example":"e68ea2e8-a2b9-8aa9-e4b4-9b897426a692"},"duration":{"type":"number","format":"float","description":"Time spent duration in hours","example":8.5},"date":{"type":"string","format":"date","description":"Date of time spent entry","example":"2022-07-12"}}}}}}},"400":{"description":"Only one date of the period is given, or a date is not valid"},"403":{"description":"You cannot read the time spents of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"description":"First date of the period, in the YYYY-MM-DD format","example":"2022-07-01"},{"in":"query","name":"end_date","required":false,"schema":{"type":"string","format":"date"},"description":"Last date of the period, in the YYYY-MM-DD format","example":"2022-07-31"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents?start_date=2022-07-01&end_date=2022-07-31\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"start_date\": \"2022-07-01\",\n    \"end_date\": \"2022-07-31\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents/{date}":{"get":{"summary":"Get the time spents of a person for a date","description":"Get the time spent entries of a person for one date. An administrator and the person get all the entries. A manager gets the entries of the projects they manage. A supervisor gets the entries of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. Other users cannot read the time spents of other persons. You cannot read the time spents of a bot. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"duration":{"type":"number","format":"float","description":"Time spent duration in hours","example":8.5},"date":{"type":"string","format":"date","description":"Date of time spent entry","example":"2022-07-12"}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot read the time spents of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"description":"Date in the YYYY-MM-DD format","example":"2022-07-12"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/day-offs/{date}":{"get":{"summary":"Get the day off of a person for a date","description":"Get the day off of a person for one date. An administrator, the person, and a manager of a project where the person is a team member get the day off with its description. A supervisor of such a project who shares a department with the person gets the day off without its description. A supervisor without department gets it for all the persons of their projects. The manager and supervisor roles are the roles held on the project team. Other users cannot read it.","responses":{"200":{"description":"The day off, or an empty object if the person works on this date","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Day off unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"date":{"type":"string","format":"date","description":"Day off date","example":"2022-07-12"},"end_date":{"type":"string","format":"date","description":"Last date of the day off","example":"2022-07-12"},"description":{"type":"string","description":"Day off description, absent for a supervisor","example":"Holidays"}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot read the day offs of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"description":"Date in the YYYY-MM-DD format","example":"2022-07-12"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/2022-07-12\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/2022-07-12\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents/year/{year}":{"get":{"summary":"Get the time spent of a person for a year, by task","description":"Get the time spent of a person for a year, with one entry per task. Give project_id to keep the tasks of one project. An administrator and the person get all the tasks. A manager gets the tasks of the projects they manage. A supervisor gets the tasks of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. Other users cannot read the time spents of other persons. You cannot read the time spents of a bot. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"The time spent of each task for the year","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","description":"Task unique identifier"},"task_type_id":{"type":"string","format":"uuid","description":"Task type of the task"},"project_id":{"type":"string","format":"uuid","description":"Project of the task"},"project_name":{"type":"string","description":"Project name"},"entity_name":{"type":"string","description":"Name of the entity of the task"},"entity_type_name":{"type":"string","description":"Name of the entity type of the task"},"sequence_name":{"type":"string","description":"Sequence name, for a shot"},"episode_name":{"type":"string","description":"Episode name, for a shot"},"duration":{"type":"number","format":"float","description":"Time spent on the task in hours","example":8.5}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot read the time spents of this person, or the person is a bot, or you cannot access this project"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"query","name":"project_id","required":false,"description":"Get only the time spent on this project","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/year/2022\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/year/2022\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents/month/{year}/{month}":{"get":{"summary":"Get the time spent of a person for a month, by task","description":"Get the time spent of a person for a month, with one entry per task. Give project_id to keep the tasks of one project. An administrator and the person get all the tasks. A manager gets the tasks of the projects they manage. A supervisor gets the tasks of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. Other users cannot read the time spents of other persons. You cannot read the time spents of a bot. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"The time spent of each task for the month","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","description":"Task unique identifier"},"task_type_id":{"type":"string","format":"uuid","description":"Task type of the task"},"project_id":{"type":"string","format":"uuid","description":"Project of the task"},"project_name":{"type":"string","description":"Project name"},"entity_name":{"type":"string","description":"Name of the entity of the task"},"entity_type_name":{"type":"string","description":"Name of the entity type of the task"},"sequence_name":{"type":"string","description":"Sequence name, for a shot"},"episode_name":{"type":"string","description":"Episode name, for a shot"},"duration":{"type":"number","format":"float","description":"Time spent on the task in hours","example":8.5}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot read the time spents of this person, or the person is a bot, or you cannot access this project"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7},{"in":"query","name":"project_id","required":false,"description":"Get only the time spent on this project","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/month/2022/7\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/month/2022/7\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents/month/all/{year}/{month}":{"get":{"summary":"Get all the time spents of a person for a month","description":"Get all the time spent entries of a person for a month. Only an administrator and the person can use this route.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The month or the year is not valid"},"403":{"description":"You are not an administrator or this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/month/all/2022/7\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/month/all/2022/7\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents/week/{year}/{week}":{"get":{"summary":"Get the time spent of a person for a week, by task","description":"Get the time spent of a person for a week, with one entry per task. Give project_id to keep the tasks of one project. An administrator and the person get all the tasks. A manager gets the tasks of the projects they manage. A supervisor gets the tasks of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. Other users cannot read the time spents of other persons. You cannot read the time spents of a bot. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"The time spent of each task for the week","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","description":"Task unique identifier"},"task_type_id":{"type":"string","format":"uuid","description":"Task type of the task"},"project_id":{"type":"string","format":"uuid","description":"Project of the task"},"project_name":{"type":"string","description":"Project name"},"entity_name":{"type":"string","description":"Name of the entity of the task"},"entity_type_name":{"type":"string","description":"Name of the entity type of the task"},"sequence_name":{"type":"string","description":"Sequence name, for a shot"},"episode_name":{"type":"string","description":"Episode name, for a shot"},"duration":{"type":"number","format":"float","description":"Time spent on the task in hours","example":8.5}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot read the time spents of this person, or the person is a bot, or you cannot access this project"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"week","required":true,"schema":{"type":"integer","minimum":1,"maximum":52},"description":"Week number of the ISO year, from 1 to 53","example":35},{"in":"query","name":"project_id","required":false,"description":"Get only the time spent on this project","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/week/2022/35\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/week/2022/35\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/time-spents/day/{year}/{month}/{day}":{"get":{"summary":"Get the time spent of a person for a day, by task","description":"Get the time spent of a person for a day, with one entry per task. Give project_id to keep the tasks of one project. An administrator and the person get all the tasks. A manager gets the tasks of the projects they manage. A supervisor gets the tasks of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. Other users cannot read the time spents of other persons. You cannot read the time spents of a bot. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"The time spent of each task for the day","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"task_id":{"type":"string","format":"uuid","description":"Task unique identifier"},"task_type_id":{"type":"string","format":"uuid","description":"Task type of the task"},"project_id":{"type":"string","format":"uuid","description":"Project of the task"},"project_name":{"type":"string","description":"Project name"},"entity_name":{"type":"string","description":"Name of the entity of the task"},"entity_type_name":{"type":"string","description":"Name of the entity type of the task"},"sequence_name":{"type":"string","description":"Sequence name, for a shot"},"episode_name":{"type":"string","description":"Episode name, for a shot"},"duration":{"type":"number","format":"float","description":"Time spent on the task in hours","example":8.5}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot read the time spents of this person, or the person is a bot, or you cannot access this project"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7},{"in":"path","name":"day","required":true,"schema":{"type":"integer","minimum":1,"maximum":31},"description":"Day of the month","example":12},{"in":"query","name":"project_id","required":false,"description":"Get only the time spent on this project","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/day/2022/7/12\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/day/2022/7/12\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/quota-shots/month/{year}/{month}":{"get":{"summary":"Get the quota shots of a person for a month","description":"Get the shots that count in the quota of a person for a month. A quota shot is a shot that the person ended. An administrator reads the quotas of all persons. The person reads their own quotas. Give project_id to read the quotas of another person. You must then be a manager or a supervisor in the team of this project. The role held on the project team applies. A manager or a supervisor who gives a project_id of a project they are not a team member of gets a 403, also for their own quotas.","responses":{"200":{"description":"The list of quota shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"A serialized shot, with its project_id, full_name and the weight it carries in the period."}}}}},"400":{"description":"The date or count_mode is not valid"},"403":{"description":"You cannot read the quotas of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7},{"in":"query","name":"count_mode","required":false,"schema":{"type":"string","enum":["weighted","weighteddone","feedback","done"]},"description":"How to count the shots: weighted, weighteddone, feedback or done. The default value is weighted. The weighted modes give each shot the part of its work time that is in the period. The other modes count each shot on its end date. The feedback modes end a shot at its first feedback. The done modes end a shot when it is done.","example":"weighted"},{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this task type","example":"b35b7fb5-df86-5776-b181-68564193d361"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/quota-shots/month/2022/7?count_mode=weighted\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/quota-shots/month/2022/7\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"count_mode\": \"weighted\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/quota-shots/week/{year}/{week}":{"get":{"summary":"Get the quota shots of a person for a week","description":"Get the shots that count in the quota of a person for a week. A quota shot is a shot that the person ended. An administrator reads the quotas of all persons. The person reads their own quotas. Give project_id to read the quotas of another person. You must then be a manager or a supervisor in the team of this project. The role held on the project team applies. A manager or a supervisor who gives a project_id of a project they are not a team member of gets a 403, also for their own quotas.","responses":{"200":{"description":"The list of quota shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"A serialized shot, with its project_id, full_name and the weight it carries in the period."}}}}},"400":{"description":"The date or count_mode is not valid"},"403":{"description":"You cannot read the quotas of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"week","required":true,"schema":{"type":"integer","minimum":1,"maximum":52},"description":"Week number of the ISO year, from 1 to 53","example":35},{"in":"query","name":"count_mode","required":false,"schema":{"type":"string","enum":["weighted","weighteddone","feedback","done"]},"description":"How to count the shots: weighted, weighteddone, feedback or done. The default value is weighted. The weighted modes give each shot the part of its work time that is in the period. The other modes count each shot on its end date. The feedback modes end a shot at its first feedback. The done modes end a shot when it is done.","example":"weighted"},{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this task type","example":"b35b7fb5-df86-5776-b181-68564193d361"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/quota-shots/week/2022/35?count_mode=weighted\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/quota-shots/week/2022/35\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"count_mode\": \"weighted\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/quota-shots/day/{year}/{month}/{day}":{"get":{"summary":"Get the quota shots of a person for a day","description":"Get the shots that count in the quota of a person for a day. A quota shot is a shot that the person ended. An administrator reads the quotas of all persons. The person reads their own quotas. Give project_id to read the quotas of another person. You must then be a manager or a supervisor in the team of this project. The role held on the project team applies. A manager or a supervisor who gives a project_id of a project they are not a team member of gets a 403, also for their own quotas.","responses":{"200":{"description":"The list of quota shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"A serialized shot, with its project_id, full_name and the weight it carries in the period."}}}}},"400":{"description":"The date or count_mode is not valid"},"403":{"description":"You cannot read the quotas of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7},{"in":"path","name":"day","required":true,"schema":{"type":"integer","minimum":1,"maximum":31},"description":"Day of the month","example":12},{"in":"query","name":"count_mode","required":false,"schema":{"type":"string","enum":["weighted","weighteddone","feedback","done"]},"description":"How to count the shots: weighted, weighteddone, feedback or done. The default value is weighted. The weighted modes give each shot the part of its work time that is in the period. The other modes count each shot on its end date. The feedback modes end a shot at its first feedback. The done modes end a shot when it is done.","example":"weighted"},{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this task type","example":"b35b7fb5-df86-5776-b181-68564193d361"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/quota-shots/day/2022/7/12?count_mode=weighted\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/quota-shots/day/2022/7/12\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"count_mode\": \"weighted\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/time-spents/year-table":{"get":{"summary":"Get the time spent table by year","description":"Get a table of the time spent of each person for each year. Add project_id, department_id or studio_id to filter the table. An administrator gets the time spent of all persons. A manager gets the time spent logged on the tasks of the projects they manage, for all persons. A supervisor gets the time spent of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. A supervisor who gives a department_id that is not one of their departments gets a 400. Other users get their own time spent only. The filters still apply to them. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"A map of each year to a map of person identifiers to the time spent in hours","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"A supervisor asks for another department"},"403":{"description":"You cannot access this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"description":"Get only the time spents of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"department_id","required":false,"description":"Get only the persons of this department","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"studio_id","required":false,"description":"Get only the persons of this studio","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/time-spents/year-table/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/time-spents/year-table/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/time-spents/month-table/{year}":{"get":{"summary":"Get the time spent table of a year by month","description":"Get a table of the time spent of each person for each month of a year. Add project_id, department_id or studio_id to filter the table. An administrator gets the time spent of all persons. A manager gets the time spent logged on the tasks of the projects they manage, for all persons. A supervisor gets the time spent of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. A supervisor who gives a department_id that is not one of their departments gets a 400. Other users get their own time spent only. The filters still apply to them. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"A map of each month of the year to a map of person identifiers to the time spent in hours","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The date is not valid, or a supervisor asks for another department"},"403":{"description":"You cannot access this project"}},"parameters":[{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"query","name":"project_id","required":false,"description":"Get only the time spents of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"department_id","required":false,"description":"Get only the persons of this department","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"studio_id","required":false,"description":"Get only the persons of this studio","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/time-spents/month-table/2022\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/time-spents/month-table/2022\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/time-spents/week-table/{year}":{"get":{"summary":"Get the time spent table of a year by week","description":"Get a table of the time spent of each person for each week of a year. Add project_id, department_id or studio_id to filter the table. An administrator gets the time spent of all persons. A manager gets the time spent logged on the tasks of the projects they manage, for all persons. A supervisor gets the time spent of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. A supervisor who gives a department_id that is not one of their departments gets a 400. Other users get their own time spent only. The filters still apply to them. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"A map of each ISO week of the year to a map of person identifiers to the time spent in hours","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The date is not valid, or a supervisor asks for another department"},"403":{"description":"You cannot access this project"}},"parameters":[{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"query","name":"project_id","required":false,"description":"Get only the time spents of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"department_id","required":false,"description":"Get only the persons of this department","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"studio_id","required":false,"description":"Get only the persons of this studio","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/time-spents/week-table/2022\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/time-spents/week-table/2022\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/time-spents/day-table/{year}/{month}":{"get":{"summary":"Get the time spent table of a month","description":"Get a table of the time spent of each person for each day of a month. Add project_id, department_id or studio_id to filter the table. An administrator gets the time spent of all persons. A manager gets the time spent logged on the tasks of the projects they manage, for all persons. A supervisor gets the time spent of the projects they supervise, for the task types of their departments. A supervisor without department gets all the task types. A manager or a supervisor who gives a project_id of another project gets a 403. A supervisor who gives a department_id that is not one of their departments gets a 400. Other users get their own time spent only. The filters still apply to them. The manager and supervisor roles are the roles held on the project team.","responses":{"200":{"description":"A map of each day of the month to a map of person identifiers to the time spent in hours","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The date is not valid, or a supervisor asks for another department"},"403":{"description":"You cannot access this project"}},"parameters":[{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7},{"in":"query","name":"project_id","required":false,"description":"Get only the time spents of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"department_id","required":false,"description":"Get only the persons of this department","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"studio_id","required":false,"description":"Get only the persons of this studio","schema":{"type":"string","format":"uuid"}}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/time-spents/day-table/2022/7\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/time-spents/day-table/2022/7\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/day-offs/{year}":{"get":{"summary":"Get the day offs of a year","description":"Get the day offs of a year. An administrator gets all the day offs. A manager gets the day offs of the persons of their projects. A supervisor gets the dates only, for the persons of their projects who share one of their departments. A supervisor without department gets all the persons of their projects. Other users get their own day offs.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The year is not valid"}},"parameters":[{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022}],"tags":["Persons"]}},"/data/persons/day-offs/{year}/{month}":{"get":{"summary":"Get the day offs of a month","description":"Get the day offs of a month. An administrator gets all the day offs. A manager gets the day offs of the persons of their projects. A supervisor gets the dates only, for the persons of their projects who share one of their departments. A supervisor without department gets all the persons of their projects. Other users get their own day offs.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The year or the month is not valid"}},"parameters":[{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/day-offs/2022/7\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/day-offs/2022/7\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/day-offs/week/{year}/{week}":{"get":{"summary":"Get the day offs of a person for a week","description":"Get the day offs of a person for a week. An administrator, the person, and a manager of a project where the person is a team member get the day offs with their description. A supervisor of such a project who shares a department with the person gets the day offs without their description. A supervisor without department gets them for all the persons of their projects. The manager and supervisor roles are the roles held on the project team. Other users cannot read them.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The year or the week is not valid"},"403":{"description":"You cannot read the day offs of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"week","required":true,"schema":{"type":"integer","minimum":1,"maximum":52},"description":"Week number of the ISO year, from 1 to 53","example":35}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/week/2022/35\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/week/2022/35\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/day-offs/month/{year}/{month}":{"get":{"summary":"Get the day offs of a person for a month","description":"Get the day offs of a person for a month. An administrator, the person, and a manager of a project where the person is a team member get the day offs with their description. A supervisor of such a project who shares a department with the person gets the day offs without their description. A supervisor without department gets them for all the persons of their projects. The manager and supervisor roles are the roles held on the project team. Other users cannot read them.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The year or the month is not valid"},"403":{"description":"You cannot read the day offs of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022},{"in":"path","name":"month","required":true,"schema":{"type":"integer","minimum":1,"maximum":12},"description":"Month, from 1 to 12","example":7}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/month/2022/7\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/month/2022/7\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/day-offs/year/{year}":{"get":{"summary":"Get the day offs of a person for a year","description":"Get the day offs of a person for a year. An administrator, the person, and a manager of a project where the person is a team member get the day offs with their description. A supervisor of such a project who shares a department with the person gets the day offs without their description. A supervisor without department gets them for all the persons of their projects. The manager and supervisor roles are the roles held on the project team. Other users cannot read them.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The year is not valid"},"403":{"description":"You cannot read the day offs of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"year","required":true,"schema":{"type":"integer"},"description":"Year, for example 2026","example":2022}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/year/2022\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs/year/2022\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/day-offs":{"get":{"summary":"Get the day offs of a person","description":"Get all the day offs of a person. An administrator, the person, and a manager of a project where the person is a team member get the day offs with their description. A supervisor of such a project who shares a department with the person gets the day offs without their description. A supervisor without department gets them for all the persons of their projects. The manager and supervisor roles are the roles held on the project team. Other users cannot read them.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You cannot read the day offs of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/day-offs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/persons/{person_id}/invite":{"get":{"summary":"Invite a person","description":"Send an email that invites a person to log in to Kitsu. The email has a link to set the password. The link is valid for 7 days. You must be an administrator.","responses":{"200":{"description":"The email is sent","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Success flag","example":true},"message":{"type":"string","description":"Success message","example":"Email sent"}}}}}},"403":{"description":"You are not an administrator, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/invite\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/invite\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/persons/{person_id}/reset-password-link":{"post":{"summary":"Get a password reset link","description":"Get the password reset link of a person. This link is the same as the link in the password reset email. Thus, an administrator can send it by another way, for example when the email server is not set. If a reset token is valid, the route uses it again. Thus, a link that you sent before stays valid. Else, the route makes a new token. You must be an administrator.","responses":{"200":{"description":"The password reset link","content":{"application/json":{"schema":{"type":"object","properties":{"reset_password_link":{"type":"string","description":"Link to follow to choose a new password"}}}}}},"400":{"description":"The person is a protected account, or another administrator who has a password"},"403":{"description":"You are not an administrator, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"]}},"/actions/persons/{person_id}/departments/add":{"post":{"summary":"Add a person to a department","description":"Add a person to a department. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["department_id"],"properties":{"department_id":{"type":"string","format":"uuid","description":"Department unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The person, with its departments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"departments":{"type":"array","items":{"type":"string","format":"uuid"},"description":"The departments of the person","example":["b35b7fb5-df86-5776-b181-68564193d360"]}}}}}},"400":{"description":"The department does not exist, or the identifier is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/departments/add\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"department_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/departments/add\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"department_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/persons/{person_id}/departments/{department_id}":{"delete":{"summary":"Remove a person from a department","description":"Remove a person from a department. You must be an administrator.","responses":{"204":{"description":"The person is removed from the department"},"400":{"description":"The department does not exist"},"403":{"description":"You are not an administrator"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"department_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Department unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/departments/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/departments/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/persons/{person_id}/change-password":{"post":{"summary":"Change the password of a person","description":"Set a new password for a person. Give the new password two times. You cannot change the password of a protected account. You cannot change the password of another administrator who already has a password. You can set the first password of a new administrator. The person gets an email about the change. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["password","password_2"],"properties":{"password":{"type":"string","format":"password","description":"New password","example":"newSecurePassword123"},"password_2":{"type":"string","format":"password","description":"Password confirmation","example":"newSecurePassword123"}}}}}},"responses":{"200":{"description":"The password is changed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Success flag","example":true}}}}}},"400":{"description":"The two passwords are different, the password is too short, the person is a protected account, or the person is another administrator who already has a password","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","description":"Error flag","example":true},"message":{"type":"string","description":"Error message","example":"Password is too short."}}}}}},"403":{"description":"You are not an administrator, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/change-password\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"password\": \"newSecurePassword123\",\n  \"password_2\": \"newSecurePassword123\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/change-password\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"password\": \"newSecurePassword123\",\n    \"password_2\": \"newSecurePassword123\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/persons/{person_id}/disable-two-factor-authentication":{"delete":{"summary":"Disable the two-factor authentication of a person","description":"Disable the two-factor authentication of a person. You cannot disable it for another administrator. The person gets an email about the change. You must be an administrator.","responses":{"200":{"description":"The two-factor authentication is disabled","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Success flag","example":true}}}}}},"400":{"description":"The person is another administrator, or the two-factor authentication is not enabled for this person","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","description":"Error flag","example":true},"message":{"type":"string","description":"Error message","example":"Two factor authentication not enabled for this user."}}}}}},"403":{"description":"You are not an administrator, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/disable-two-factor-authentication\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/disable-two-factor-authentication\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/persons/{person_id}/clear-avatar":{"delete":{"summary":"Delete the avatar of a person","description":"Delete the avatar file of a person and set has_avatar to false. You must be an administrator.","responses":{"204":{"description":"The avatar is deleted"},"403":{"description":"You are not an administrator"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Persons"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/clear-avatar\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/clear-avatar\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/playlists":{"get":{"summary":"Get the playlists of a project","description":"Get the playlists of a project, page by page. A client gets only the playlists for clients. Vendors cannot use this route.","responses":{"200":{"description":"The list of playlists","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Playlist name","example":"Review Playlist"},"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"description":"Page to get. Each page has 20 playlists.","example":1},{"in":"query","name":"sort_by","required":false,"schema":{"type":"string"},"description":"Field to sort the playlists on, for example created_at","example":"updated_at"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the playlists of this task type","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists?page=1&sort_by=updated_at&task_type_id=b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"sort_by\": \"updated_at\",\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/playlists/all":{"get":{"summary":"Get all the playlists of a project","description":"Get all the playlists of a project. Synchronization tools use this route. You must be an administrator.","responses":{"200":{"description":"The list of playlists","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Playlist name","example":"Review Playlist"},"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"400":{"description":"page is not an integer"},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"page","required":false,"description":"Page to get. Without page, the response is the full list. With page, the response is an object with data, total, nb_pages, limit, offset and page.","schema":{"type":"integer"}}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists/all\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists/all\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes/{episode_id}/playlists":{"get":{"summary":"Get the playlists of an episode","description":"Get the playlists of an episode. Give main to get the playlists that are in no episode. Give all to get the playlists of all the episodes. A client gets only the playlists for clients. Vendors cannot use this route.","responses":{"200":{"description":"The list of playlists","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Playlist name","example":"Review Playlist"},"episode_id":{"type":"string","format":"uuid","description":"Episode unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"episode_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode, or main, or all","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"for_entity","required":false,"schema":{"type":"string"},"description":"Get only the playlists of this entity type: asset, shot, sequence, edit or episode","example":"shot"},{"in":"query","name":"page","required":false,"description":"Page to get. Each page has 20 playlists.","schema":{"type":"integer"}},{"in":"query","name":"sort_by","required":false,"description":"Field to sort the playlists on, for example created_at","schema":{"type":"string"}},{"in":"query","name":"task_type_id","required":false,"description":"Get only the playlists of this task type","schema":{"type":"string"}}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/a24a6ea4-ce75-4665-a070-57453082c25/playlists\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/a24a6ea4-ce75-4665-a070-57453082c25/playlists\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/playlists/{playlist_id}":{"get":{"summary":"Get a playlist","description":"Get a playlist with the revisions of its preview files. All the members of the project can read it, but vendors cannot. A client can read only the playlists for clients.","responses":{"200":{"description":"The playlist","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Playlist name","example":"Review Playlist"},"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"shots":{"type":"array","description":"List of shots with preview file revisions","items":{"type":"object","example":[{"id":"uuid","preview_file_id":"uuid"}]}}}}}}},"403":{"description":"You cannot read this playlist"},"404":{"description":"The project has no playlist with this identifier"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/entities/{entity_id}/preview-files":{"get":{"summary":"Get the previews of an entity","description":"Get the preview files of an entity. The response is a map of task type identifiers to lists of previews. You must be a member of the project. A vendor must have a task on the entity.","responses":{"200":{"description":"A map of task type identifiers to lists of previews","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Preview file name","example":"preview_v001.png"}}}}}}}},"403":{"description":"You are not a member of the project, or you are a vendor without a task on this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/entities/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/entities/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/{playlist_id}/jobs/{build_job_id}":{"get":{"summary":"Get a build job","description":"Get a build job of a playlist. A build job makes a movie of the playlist. You must be a manager of the project, or a client when the playlist is for clients. Supervisors, artists and vendors cannot use this route.","responses":{"200":{"description":"The build job","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Build job unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","description":"Build job status","example":"succeeded"},"created_at":{"type":"string","format":"date-time","description":"Build job creation timestamp","example":"2022-07-12T10:30:00Z"}}}}}},"403":{"description":"You are not a manager of the project, or you are a client and the playlist is not for clients"},"404":{"description":"The playlist or the build job does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"build_job_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Build job unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/jobs/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/jobs/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a build job","description":"Delete a build job of a playlist. You must be a manager of the project, or a client when the playlist is for clients. Supervisors, artists and vendors cannot use this route.","responses":{"204":{"description":"The build job is deleted"},"403":{"description":"You are not a manager of the project, or you are a client and the playlist is not for clients"},"404":{"description":"The playlist or the build job does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"build_job_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Build job unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/jobs/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/jobs/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/build-jobs":{"get":{"summary":"Get the build jobs of a project","description":"Get the build jobs of the playlists of a project. Synchronization tools use this route. You must be an administrator.","responses":{"200":{"description":"The list of build jobs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Build job unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","description":"Build job status","example":"succeeded"},"created_at":{"type":"string","format":"date-time","description":"Build job creation timestamp","example":"2022-07-12T10:30:00Z"}}}}}}},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/build-jobs\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/build-jobs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/{playlist_id}/build/mp4":{"get":{"summary":"Build the movie of a playlist","description":"Start a build job that makes an MP4 movie of the playlist. If the job queue is enabled, the job runs in the background. Else, the response comes when the movie is ready. You must be a manager of the project.","responses":{"200":{"description":"The build job","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Build job unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","description":"Build job status","example":"pending"},"created_at":{"type":"string","format":"date-time","description":"Build job creation timestamp","example":"2022-07-12T10:30:00Z"}}}}}},"400":{"description":"The remote job queue needs the s3 or swift storage"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The playlist does not exist"},"409":{"description":"A build of this playlist is already in progress"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"full","required":false,"schema":{"type":"boolean"},"description":"Build the movie in full quality","example":true}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/build/mp4?full=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/build/mp4\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"full\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/{playlist_id}/jobs/{build_job_id}/build/mp4":{"get":{"summary":"Download the movie of a playlist","description":"Download the MP4 movie of a build job. A manager of the project can use this route. A supervisor can use it for the playlists that the supervisor can see. A client can use it for the playlists for clients. Artists and vendors cannot use it.","responses":{"200":{"description":"The MP4 file","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The build is not finished. Try again later.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"boolean","description":"Error flag","example":true},"message":{"type":"string","description":"Error message","example":"Build is not finished"}}}}}},"403":{"description":"You cannot access this playlist"},"404":{"description":"The playlist or the build job does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"build_job_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Build job unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/jobs/b35b7fb5-df86-5776-b181-68564193d36/build/mp4\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/jobs/b35b7fb5-df86-5776-b181-68564193d36/build/mp4\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/{playlist_id}/download/zip":{"get":{"summary":"Download a playlist as a ZIP file","description":"Download a ZIP file with the preview files of a playlist. A manager of the project can use this route. A supervisor can use it for the playlists that the supervisor can see. A client can use it for the playlists for clients. Artists and vendors cannot use it.","responses":{"200":{"description":"The ZIP file","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You cannot access this playlist"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/download/zip\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/download/zip\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/playlists/temp":{"post":{"summary":"Make a temporary playlist","description":"Make a temporary playlist from tasks or entities. The playlist is not saved. For each entity, the route uses the task of the entity that has a preview. An entity with no task that has a preview is skipped. You must have access to each task.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of task unique identifiers","example":["a24a6ea4-ce75-4665-a070-57453082c250"]},"entity_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of entity unique identifiers, each contributing the task holding its current preview (or its first task with a preview)\n","example":["a24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"responses":{"200":{"description":"The entries of the temporary playlist","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Preview file name","example":"preview_v001.png"}}}}}}},"400":{"description":"An identifier is not valid"},"403":{"description":"You do not have access to this project or to a task"},"404":{"description":"A task does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"sort","required":false,"schema":{"type":"boolean"},"description":"Sort the entries of the playlist","example":true}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists/temp?sort=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_ids\": [\n    \"a24a6ea4-ce75-4665-a070-57453082c25\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/playlists/temp\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {\n    \"sort\": true\n}\npayload = {\n    \"task_ids\": [\n        \"a24a6ea4-ce75-4665-a070-57453082c25\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/playlists/{playlist_id}/add-entity":{"post":{"summary":"Add an entity to a playlist","description":"Add an entity to a playlist, with a preview. Without preview_file_id, or when the preview is not a preview of this entity, the route uses the last preview of the entity for the task type of the playlist. A manager of the project can change all the playlists. A supervisor of the project can change the playlists that the supervisor created and the playlists with no creator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity_id"],"properties":{"entity_id":{"type":"string","format":"uuid","description":"Entity unique identifier to add to playlist"},"preview_file_id":{"type":"string","format":"uuid","nullable":true,"description":"Optional preview file identifier associated to the entity"}}}}}},"responses":{"200":{"description":"The updated playlist","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The body is not valid"},"403":{"description":"You cannot change this playlist"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier"}],"tags":["Playlists"]}},"/actions/playlists/{playlist_id}/add-entities":{"post":{"summary":"Add entities to a playlist","description":"Add several couples of an entity and a preview to a playlist, in one database write. The same entity can be in the playlist several times, with different previews. A couple that is already in the playlist is skipped. Without preview_file_id, or when the preview is not a preview of the entity, the route uses the last preview of the entity for the task type of the playlist. A manager of the project can change all the playlists. A supervisor of the project can change the playlists that the supervisor created and the playlists with no creator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entities"],"properties":{"entities":{"type":"array","items":{"type":"object","required":["entity_id"],"properties":{"entity_id":{"type":"string","format":"uuid"},"preview_file_id":{"type":"string","format":"uuid","nullable":true}}},"description":"Entity/preview couples to add to the playlist"}}}}}},"responses":{"200":{"description":"The updated playlist","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The body is not valid"},"403":{"description":"You cannot change this playlist"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/notify-clients":{"post":{"summary":"Notify the clients about a playlist","description":"Send a notification to the clients of the project. The notification tells that the playlist is ready for review. Give studio_id or department_id to notify fewer clients. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"studio_id":{"type":"string","format":"uuid","description":"Studio unique identifier to notify","example":"b35b7fb5-df86-5776-b181-68564193d360"},"department_id":{"type":"string","format":"uuid","description":"Department unique identifier to notify","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}},"responses":{"200":{"description":"The clients get the notification","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"Notification status","example":"success"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Playlist unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Playlists"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/notify-clients\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"studio_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/a24a6ea4-ce75-4665-a070-57453082c25/notify-clients\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"studio_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/{playlist_id}/share":{"post":{"summary":"Create a share link for a playlist","description":"Create a link that guests can use to review the playlist without an account. The link can expire, block comments and ask for a password. You must be an administrator or a manager of the project. The role held on the project team applies.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expiration_date":{"type":"string","format":"date-time","description":"Date after which the link stops working","example":"2026-12-31"},"can_comment":{"type":"boolean","default":true,"description":"Whether guests may comment and annotate"},"can_download":{"type":"boolean","default":false,"description":"Whether guests may download the playlist as a ZIP file"},"password":{"type":"string","description":"Password guests must give to open the link"}}}}}},"responses":{"201":{"description":"The new share link, with its token","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"token":{"type":"string"},"playlist_id":{"type":"string","format":"uuid"},"expiration_date":{"type":"string","format":"date-time","nullable":true},"is_active":{"type":"boolean"},"can_comment":{"type":"boolean"},"can_download":{"type":"boolean"},"has_password":{"type":"boolean"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not an administrator or a manager of the project"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"}],"tags":["Playlists"]},"get":{"summary":"Get the share links of a playlist","description":"Get the active share links of a playlist. Revoked links are not in the response. The response does not give the passwords. The has_password field tells if a link has a password. You must be an administrator or a manager of the project. The role held on the project team applies.","responses":{"200":{"description":"The list of active share links","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"token":{"type":"string"},"playlist_id":{"type":"string","format":"uuid"},"created_by":{"type":"string","format":"uuid"},"expiration_date":{"type":"string","format":"date-time","nullable":true},"is_active":{"type":"boolean"},"can_comment":{"type":"boolean"},"can_download":{"type":"boolean"},"has_password":{"type":"boolean"}}}}}}},"403":{"description":"You are not an administrator or a manager of the project"},"404":{"description":"The playlist does not exist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/share/{token}":{"delete":{"summary":"Revoke a share link","description":"Disable a share link. The token must be a token of the playlist of the path. You must be an administrator or a manager of the project. The role held on the project team applies.","responses":{"200":{"description":"The revoked share link","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"is_active":{"type":"boolean","example":false}}}}}},"403":{"description":"You are not an administrator or a manager of the project"},"404":{"description":"The playlist or the share link does not exist, or the token is for another playlist"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the playlist"},{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Token of the share link"}],"tags":["Playlists"]}},"/data/playlists/{playlist_id}/share/{token}/invite":{"post":{"summary":"Invite reviewers to a shared playlist","description":"Send the URL of a share link by email. Give email addresses, person identifiers, or both. Unknown persons and persons without an email are skipped. You can add a message. You must be an administrator or a manager of the project. The role held on the project team applies.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string","format":"email"}},"person_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"message":{"type":"string"}}}}}},"responses":{"200":{"description":"The list of addresses that got the email","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"array","items":{"type":"string"}}}}}}},"400":{"description":"An email address is not valid"},"403":{"description":"You are not an administrator or a manager of the project"},"404":{"description":"The playlist or the share link does not exist, the token is for another playlist, or the link is revoked"}},"parameters":[{"in":"path","name":"playlist_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the playlist"},{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Token of the share link"}],"tags":["Playlists"]}},"/shared/playlists/{token}":{"get":{"summary":"Get a shared playlist","description":"Get the playlist of a share link. Each shot has the revision that the playlist uses, and no other revision. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Playlist with the positioned revision of each shot and enriched shots","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"The link is not valid, has expired, or the password is wrong"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/guest":{"post":{"summary":"Create a guest for a shared playlist","description":"Create a guest identity for the shared playlist. If you give the guest_id of a guest created from this link, the route returns this guest with the code 200. Else the route creates a new guest and returns it with the code 201. The route never reuses a guest by name. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","default":"Guest"},"last_name":{"type":"string"},"guest_id":{"type":"string","format":"uuid","description":"If set, return this guest if it still exists"}}}}}},"responses":{"200":{"description":"The guest already exists","content":{"application/json":{"schema":{"type":"object"}}}},"201":{"description":"The guest","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/comments":{"post":{"summary":"Comment a shared playlist","description":"Add a comment as a guest. Give guest_id, task_id, task_status_id and the text. The link must allow comments. The task status must allow clients. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["guest_id","task_id","task_status_id"],"properties":{"guest_id":{"type":"string","format":"uuid"},"task_id":{"type":"string","format":"uuid"},"task_status_id":{"type":"string","format":"uuid"},"text":{"type":"string"},"checklist":{"type":"array","items":{"type":"object"}}}}}}},"responses":{"201":{"description":"Comment created","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing required body fields, unknown task status, or task status not allowed for guest reviewers","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"403":{"description":"Comments are disabled for this link, the guest is not a guest of this link, or the task is not in the shared playlist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"404":{"description":"The link is not valid, has expired, or the password is wrong"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]},"get":{"summary":"Get the comments of a shared playlist","description":"Get the comments of the tasks of the shared playlist. The response has only the comments for the clients and the comments of the guests. The internal comments of the team are not in the response. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"The list of comments","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"404":{"description":"The link is not valid, has expired, or the password is wrong"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/comments/{comment_id}":{"delete":{"summary":"Delete a guest comment","description":"Delete a comment. Only the guest who wrote the comment can delete it. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["guest_id"],"properties":{"guest_id":{"type":"string","format":"uuid","description":"Identifier of the guest who wrote the comment"}}}}}},"responses":{"204":{"description":"The comment is deleted"},"400":{"description":"The body has no guest_id, or guest_id is not a UUID"},"403":{"description":"Comments are disabled for this link, the guest is not a guest of this link, another guest wrote the comment, or the comment is not on a task of the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the comment does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"description":"Token of the share link","schema":{"type":"string"}},{"in":"path","name":"comment_id","required":true,"description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]},"put":{"summary":"Edit a guest comment","description":"Change the text, the checklist or the task status of a comment. Only the guest who wrote the comment can change it. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["guest_id"],"properties":{"guest_id":{"type":"string","format":"uuid","description":"Identifier of the guest who wrote the comment"},"text":{"type":"string","description":"New text"},"checklist":{"type":"array","items":{"type":"object"},"description":"New checklist"},"task_status_id":{"type":"string","format":"uuid","description":"New task status. The status must allow clients on the project."}}}}}},"responses":{"200":{"description":"The updated comment"},"400":{"description":"The body is not valid"},"403":{"description":"Comments are disabled for this link, the guest is not a guest of this link, another guest wrote the comment, the comment is not on a task of the shared playlist, or the new task status does not allow clients"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the comment does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"description":"Token of the share link","schema":{"type":"string"}},{"in":"path","name":"comment_id","required":true,"description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/comments/{comment_id}/attachments":{"post":{"summary":"Attach files to a guest comment","description":"Attach files to a comment. Only the guest who wrote the comment can attach files. Send the files in a multipart form. The route attaches every file of the form, whatever the name of its field. Give guest_id in the form or in the query string. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"guest_id":{"type":"string","format":"uuid","description":"Identifier of the guest who wrote the comment"},"files":{"type":"array","items":{"type":"string","format":"binary"},"description":"Files to attach"}}}}}},"responses":{"201":{"description":"The comment with its attachments"},"403":{"description":"Comments are disabled for this link, guest_id is missing, the guest is not a guest of this link, another guest wrote the comment, or the comment is not on a task of the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the comment does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"description":"Token of the share link","schema":{"type":"string"}},{"in":"path","name":"comment_id","required":true,"description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"guest_id","required":false,"description":"Same as the form field","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/comments/{comment_id}/attachments/{attachment_file_id}":{"delete":{"summary":"Delete an attachment of a guest comment","description":"Delete a file attached to a comment. Only the guest who wrote the comment can delete it. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["guest_id"],"properties":{"guest_id":{"type":"string","format":"uuid","description":"Identifier of the guest who wrote the comment"}}}}}},"responses":{"204":{"description":"The attachment is deleted"},"400":{"description":"The body has no guest_id, or guest_id is not a UUID"},"403":{"description":"Comments are disabled for this link, the guest is not a guest of this link, another guest wrote the comment, or the comment is not on a task of the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the comment does not exist, or the attachment does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"description":"Token of the share link","schema":{"type":"string"}},{"in":"path","name":"comment_id","required":true,"description":"Unique identifier of the comment","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"attachment_file_id","required":true,"description":"Unique identifier of the attachment","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/attachment-files/{attachment_file_id}/file/{file_name}":{"get":{"summary":"Download an attachment of a shared comment","description":"Download a file attached to a comment that the link shows: a comment for the clients or a comment of a guest. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"The file"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the attachment is not shown by this link"}},"parameters":[{"in":"path","name":"token","required":true,"description":"Token of the share link","schema":{"type":"string"}},{"in":"path","name":"attachment_file_id","required":true,"description":"Unique identifier of the attachment","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"file_name","required":true,"description":"Any value. The route ignores it. The response uses the name stored on the attachment.","schema":{"type":"string"}},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/annotations":{"put":{"summary":"Change the annotations of a shared preview","description":"Change the annotations of a preview of the shared playlist. The body uses the same additions, updates and deletions as the route for users. A guest can change only the annotations of this guest. The guest must be a guest of this link. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["guest_id","preview_file_id"],"properties":{"guest_id":{"type":"string","format":"uuid"},"preview_file_id":{"type":"string","format":"uuid"},"additions":{"type":"array","items":{"type":"object"}},"updates":{"type":"array","items":{"type":"object"}},"deletions":{"type":"array","items":{"type":"string","format":"uuid"}}}}}}},"responses":{"200":{"description":"Updated preview file with the new annotations","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing required body fields"},"403":{"description":"Annotations are disabled for this link, the guest is not a guest of this link, or the preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the preview file does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/preview-files/{preview_file_id}":{"get":{"summary":"Get a shared preview file","description":"Get the data of a preview of the shared playlist. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Preview file metadata","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/movies/originals/preview-files/{preview_file_id}.mp4":{"get":{"summary":"Get the movie of a shared preview","description":"Get the movie of a preview of the shared playlist. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Movie preview file stream","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/pictures/thumbnails/preview-files/{preview_file_id}.png":{"get":{"summary":"Get the thumbnail of a shared preview","description":"Get the PNG thumbnail of a preview of the shared playlist. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Thumbnail image","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/pictures/thumbnails/persons/{person_id}.png":{"get":{"summary":"Get the avatar of a person on a shared playlist","description":"Get the avatar of a person that the share page shows, as the author of a comment or of a reply. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Avatar image","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"The link is not valid, the password is missing or wrong, the page does not show this person, or the person has no avatar"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Person unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/pictures/originals/preview-files/{preview_file_id}.png":{"get":{"summary":"Get the original picture of a shared preview","description":"Get the full size PNG picture of a preview of the shared playlist. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Original picture file","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/pictures/originals/preview-files/{preview_file_id}.{extension}":{"get":{"summary":"Get the original file of a shared preview","description":"Get the original file of a preview of the shared playlist, for example a GIF, an SVG, a JPEG or a PDF file. The extension of the path must be the extension of the preview. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Original picture file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Extension not allowed"},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"path","name":"extension","required":true,"schema":{"type":"string"},"description":"File extension"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/movies/tiles/preview-files/{preview_file_id}.png":{"get":{"summary":"Get the tile sheet of a shared movie","description":"Get the tile sheet of a movie of the shared playlist. The player shows it when the mouse is on the timeline. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Tile sprite image","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/preview-files/{preview_file_id}/download":{"get":{"summary":"Download a shared preview file","description":"Download the file of a preview of the shared playlist as an attachment. The preview must be in the playlist. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"Preview file downloaded as attachment","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"The preview is not in the shared playlist"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong, or the file does not exist"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview file unique identifier"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/download/zip":{"get":{"summary":"Download a shared playlist as a ZIP file","description":"Download a ZIP file with the preview files of the shared playlist. The link must allow downloads. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"The ZIP file","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"The link does not allow downloads"},"404":{"description":"The link is not valid, has expired, or the password is missing or wrong"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/shared/playlists/{token}/context":{"get":{"summary":"Get the context of a shared playlist","description":"Get the minimal data that the share page needs. It gives what the link allows, the project, its task types and its task statuses. You do not need an account. The token of the link is the credential. If the link has a password, give it in the password query parameter.","responses":{"200":{"description":"The context of the share page","content":{"application/json":{"schema":{"type":"object","properties":{"share_link":{"type":"object","properties":{"can_comment":{"type":"boolean","description":"True if the guests can comment and annotate"},"can_download":{"type":"boolean","description":"True if the guests can download the playlist as a ZIP file"}}},"project":{"type":"object","description":"Project of the playlist","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"fps":{"type":"string","nullable":true},"ratio":{"type":"string","nullable":true},"resolution":{"type":"string","nullable":true},"team":{"type":"array","description":"Always empty. The link gives no team.","items":{"type":"string","format":"uuid"}}}},"task_types":{"type":"array","description":"Task types of the project","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"color":{"type":"string","nullable":true},"for_entity":{"type":"string","nullable":true}}}},"task_statuses":{"type":"array","description":"Task statuses of the project","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"short_name":{"type":"string"},"color":{"type":"string"},"is_client_allowed":{"type":"boolean","nullable":true,"description":"True if a guest can set this status. The setting of the project applies."},"is_default":{"type":"boolean","nullable":true},"for_concept":{"type":"boolean","nullable":true}}}}}}}}},"404":{"description":"The link is not valid, has expired, or the password is wrong"}},"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"},"description":"Share link token"},{"in":"query","name":"password","required":false,"schema":{"type":"string"},"description":"Password when the link is protected"}],"tags":["Playlists"],"security":[]}},"/data/projects/open":{"get":{"summary":"Get the open projects","description":"Get the open projects. An administrator gets all of them. Other users get the projects of their teams. Each project gives asset_type_workflows, the task type ids of the workflows it sets, by asset type id.","responses":{"200":{"description":"The list of open projects","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"project_status_id":{"type":"string","format":"uuid","description":"Project status unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}}},"parameters":[{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the projects with this name","example":"My Project"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/open?name=My%20Project\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/open\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"name\": \"My Project\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/all":{"get":{"summary":"Get all the projects","description":"Get all the projects, open and closed. An administrator gets all of them. Other users get the projects of their teams, open and closed. The name filter ignores the case.","responses":{"200":{"description":"The list of projects","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"project_status_id":{"type":"string","format":"uuid","description":"Project status unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}}},"404":{"description":"No project has this name. Only when you give name."}},"parameters":[{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the projects with this name","example":"My Project"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/all?name=My%20Project\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/all\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"name\": \"My Project\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/team":{"post":{"summary":"Add a person to a project team","description":"Add a person to the team of a project. You can give the role of the person in this project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["person_id"],"properties":{"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"role":{"type":"string","nullable":true,"description":"Role of the person on this project only. Null means the person's global role applies.","enum":["user","supervisor","manager","client","vendor",null]}}}}}},"responses":{"201":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/team\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"person_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/team\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"person_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the team of a project","description":"Get the persons of the team of a project, with their role in the project. A manager gets all the fields of each person. A client gets the fields for clients. Other users get the minimal fields.","responses":{"200":{"description":"The list of team members","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","description":"Person first name","example":"John"},"last_name":{"type":"string","description":"Person last name","example":"Doe"},"email":{"type":"string","description":"Person email address","example":"john.doe@example.com"},"project_role":{"type":"string","nullable":true,"description":"Person role on this project only. Null means the person's global role applies.","example":"supervisor"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/team\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/team\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/task-types":{"get":{"summary":"Get the task types of a project","description":"Get the task types of a project.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/task-types/{task_type_id}/time-spents":{"get":{"summary":"Get the time spents of a task type in a project","description":"Get the time spent entries of the tasks of a task type in a project. Give start_date and end_date to get the entries of a period. You must be a manager of the project.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"object","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"duration":{"type":"number","format":"float","description":"Time spent duration in hours","example":8.5},"date":{"type":"string","format":"date","description":"Date of time spent entry","example":"2022-07-15"}}}}}}},"400":{"description":"The task type identifier is not a valid UUID, or a date is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"description":"First date of the period, in the YYYY-MM-DD format","example":"2022-07-01"},{"in":"query","name":"end_date","required":false,"schema":{"type":"string","format":"date"},"description":"Last date of the period, in the YYYY-MM-DD format","example":"2022-07-31"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/time-spents?start_date=2022-07-01&end_date=2022-07-31\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"start_date\": \"2022-07-01\",\n    \"end_date\": \"2022-07-31\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/task-type-softwares":{"get":{"summary":"Get the softwares of the task types of a project","description":"Get the softwares that the artists use for each task type of a project.","responses":{"200":{"description":"The list of links between task types and softwares","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"software_id":{"type":"string","format":"uuid","description":"Software unique identifier","example":"c46c8fc6-ef97-4887-a292-79675204e471"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"]}},"/data/projects/{project_id}/task-types/{task_type_id}/softwares":{"post":{"summary":"Add a software to a task type of a project","description":"Add a software to a task type of a project. The project must use the task type. The software must not be archived. If the link exists, the route returns it. Administrators and managers of the project can use this route. A supervisor of the project can use it for the task types of their departments. A supervisor with no department can use it for every task type.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["software_id"],"properties":{"software_id":{"type":"string","format":"uuid","description":"Software unique identifier","example":"c46c8fc6-ef97-4887-a292-79675204e471"}}}}}},"responses":{"201":{"description":"The link between the task type and the software","content":{"application/json":{"schema":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_type_id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"software_id":{"type":"string","format":"uuid","description":"Software unique identifier","example":"c46c8fc6-ef97-4887-a292-79675204e471"}}}}}},"400":{"description":"The project does not use the task type, or the software is archived"},"403":{"description":"You cannot change the softwares of this task type"},"404":{"description":"The software does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"]}},"/data/projects/{project_id}/task-types/{task_type_id}/softwares/{software_id}":{"delete":{"summary":"Remove a software from a task type of a project","description":"Remove a software from a task type of a project. Administrators and managers of the project can use this route. A supervisor of the project can use it for the task types of their departments. A supervisor with no department can use it for every task type.","responses":{"204":{"description":"The software is removed from the task type"},"403":{"description":"You cannot change the softwares of this task type"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"path","name":"software_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Software unique identifier","example":"c46c8fc6-ef97-4887-a292-79675204e471"}],"tags":["Projects"]}},"/data/projects/{project_id}/day-offs":{"get":{"summary":"Get the day offs of a project team","description":"Get the day offs of the team of a project. Give start_date and end_date to get the day offs of a period. A manager gets the description of each day off. Other users get the description of their own day offs only. Clients and vendors cannot use this route.","responses":{"200":{"description":"The list of day offs","content":{"application/json":{"schema":{"type":"object","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Day off unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"description":{"type":"string","description":"Day off description","example":"Vacation"},"date":{"type":"string","format":"date","description":"Day off start date","example":"2022-07-15"},"end_date":{"type":"string","format":"date","description":"Day off end date","example":"2022-07-22"}}}}}}},"400":{"description":"A date is not valid"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"description":"First date of the period, in the YYYY-MM-DD format","example":"2022-07-01"},{"in":"query","name":"end_date","required":false,"schema":{"type":"string","format":"date"},"description":"Last date of the period, in the YYYY-MM-DD format","example":"2022-07-31"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/day-offs?start_date=2022-07-01&end_date=2022-07-31\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/day-offs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"start_date\": \"2022-07-01\",\n    \"end_date\": \"2022-07-31\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/team/{person_id}":{"delete":{"summary":"Remove a person from a project team","description":"Remove a person from the team of a project. You must be a manager of the project.","responses":{"204":{"description":"The person is removed from the team"},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/team/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/team/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Set the role of a team member","description":"Set the role of a person in one project. A null role gives back the global role of the person. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","nullable":true,"enum":["user","supervisor","manager","client","vendor",null]}}}}}},"responses":{"200":{"description":"The updated team link"},"400":{"description":"The person is not in the team, or the role is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person"}],"tags":["Projects"]}},"/data/projects/{project_id}/preview-account":{"get":{"summary":"Get the preview account of a project","description":"Get the preview account of a project. If the project has no preview account, the response is null. You must be a manager of the project.","responses":{"200":{"description":"The preview account, or null","content":{"application/json":{"schema":{"type":"object","nullable":true,"properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","example":"preview-0a1b2c3d4e5f@preview.kitsu.invalid"},"full_name":{"type":"string","example":"Preview Cosmos Landromat"},"preview_open_until":{"type":"string","format":"date-time","nullable":true,"description":"End of the access window, null when closed"}}}}}},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"]},"post":{"summary":"Create the preview account of a project","description":"Create the preview account of a project. If the account exists, the route sets a new password and closes the access. Only this response gives the password. You must be a manager of the project.","responses":{"201":{"description":"The preview account with its password","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","example":"preview-0a1b2c3d4e5f@preview.kitsu.invalid"},"full_name":{"type":"string","example":"Preview Cosmos Landromat"},"preview_open_until":{"type":"string","format":"date-time","nullable":true,"description":"End of the access window, null when closed"},"password":{"type":"string","example":"3kT9dQvE1xZb7mLw"}}}}}},"400":{"description":"The authentication strategy does not support preview accounts"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"]},"delete":{"summary":"Delete the preview account of a project","description":"Delete the preview account of a project. You must be a manager of the project.","responses":{"204":{"description":"The preview account is deleted"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"]},"put":{"summary":"Open or close the preview account","description":"Open the access of the preview account for one hour, or close it. When you close it, its sessions end. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["is_open"],"properties":{"is_open":{"type":"boolean","example":true}}}}}},"responses":{"200":{"description":"The updated preview account","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","example":"preview-0a1b2c3d4e5f@preview.kitsu.invalid"},"full_name":{"type":"string","example":"Preview Cosmos Landromat"},"preview_open_until":{"type":"string","format":"date-time","nullable":true,"description":"End of the access window, null when closed"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project has no preview account"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/asset-types":{"post":{"summary":"Add an asset type to a project","description":"Add an asset type to the settings of a project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["asset_type_id"],"properties":{"asset_type_id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/asset-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"asset_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/asset-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"asset_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/asset-types/{asset_type_id}":{"delete":{"summary":"Remove an asset type from a project","description":"Remove an asset type from the settings of a project. The asset type is not deleted. You must be a manager of the project.","responses":{"204":{"description":"The asset type is removed from the project"},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"asset_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/asset-types/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/asset-types/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/asset-types/{asset_type_id}/task-types":{"put":{"summary":"Set the workflow of an asset type for a project","description":"Replace the task types allowed for an asset type in a project, instead of the studio workflow. An empty list restores the studio workflow. Task types must be asset task types of the project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_ids"],"properties":{"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types of the workflow","example":["c46c8fc6-e097-6887-c292-796752040e47"]}}}}}},"responses":{"200":{"description":"The project, without its relations. This response does not give asset_types or asset_type_workflows. Use GET /data/projects/<id> to read the workflow.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid, or the asset type or a task type is not valid for the project"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"asset_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Asset type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/task-types":{"post":{"summary":"Add a task type to a project","description":"Add a task type to the settings of a project. You can give its priority, its movie bitrates and its visibility for the clients. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_id"],"properties":{"task_type_id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"priority":{"type":"integer","nullable":true,"description":"Task type priority","example":1},"hd_bitrate_compression":{"type":"integer","description":"High definition movie bitrate in Mbit/s for this task type, null inherits the project's","example":20},"ld_bitrate_compression":{"type":"integer","description":"Low definition movie bitrate in Mbit/s for this task type, null inherits the project's","example":4},"is_client_visible":{"type":"boolean","description":"Whether clients see this task type, left untouched when omitted","example":true}}}}}},"responses":{"201":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"priority\": \"None\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"priority\": \"None\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/task-types/{task_type_id}":{"delete":{"summary":"Remove a task type from a project","description":"Remove a task type from the settings of a project. The task type is not deleted. You must be a manager of the project.","responses":{"204":{"description":"The task type is removed from the project"},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-types/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-types/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/task-status":{"post":{"summary":"Add a task status to a project","description":"Add a task status to the settings of a project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"uuid","description":"Task status unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_status_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_status_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the task statuses of a project","description":"Get the task statuses of a project.","responses":{"200":{"description":"The list of task statuses","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-status\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-status\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/task-status/{task_status_id}":{"delete":{"summary":"Remove a task status from a project","description":"Remove a task status from the settings of a project. The task status is not deleted. You must be a manager of the project.","responses":{"204":{"description":"The task status is removed from the project"},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_status_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task status unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-status/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/task-status/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Let the clients use a task status","description":"Set if the clients of a project can use a task status. A null value uses the value of the studio. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["is_client_allowed"],"properties":{"is_client_allowed":{"type":"boolean","nullable":true,"description":"Whether clients may set this status in this production, null inherits the studio value","example":false}}}}}},"responses":{"200":{"description":"The updated link"},"400":{"description":"is_client_allowed is missing"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not use this task status"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_status_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task status unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/batch":{"post":{"summary":"Add settings to a project","description":"Add task types with their priority, task statuses and asset types to a project in one request. The unknown identifiers are skipped. If replace_task_types is true, the task types of the project are replaced, and the removed task types leave the workflows of the project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"task_types":{"type":"array","items":{"type":"object","properties":{"task_type_id":{"type":"string","format":"uuid"},"priority":{"type":"integer"},"is_client_visible":{"type":"boolean","description":"Whether clients see this task type, left untouched when omitted"}}}},"task_status_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"asset_type_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"replace_task_types":{"type":"boolean","default":false}}}}}},"responses":{"200":{"description":"The updated project"},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"]}},"/data/projects/{project_id}/settings/status-automations":{"post":{"summary":"Add a status automation to a project","description":"Add a status automation to the settings of a project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status_automation_id"],"properties":{"status_automation_id":{"type":"string","format":"uuid","description":"Status automation unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/status-automations\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"status_automation_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/status-automations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"status_automation_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the status automations of a project","description":"Get the status automations of a project, in the order they were created. The automations fired by one status change apply in that order. You must be a manager of the project.","responses":{"200":{"description":"The list of status automations","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/status-automations\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/status-automations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/status-automations/{status_automation_id}":{"delete":{"summary":"Remove a status automation from a project","description":"Remove a status automation from the settings of a project. The status automation is not deleted. You must be a manager of the project.","responses":{"204":{"description":"The status automation is removed from the project"},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"status_automation_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Status automation unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/status-automations/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/status-automations/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/preview-background-files/{preview_background_file_id}":{"delete":{"summary":"Remove a preview background file from a project","description":"Remove a preview background file from the settings of a project. The preview background file is not deleted. You must be a manager of the project.","responses":{"204":{"description":"The preview background file is removed from the project"},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"preview_background_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Preview background file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/preview-background-files/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/preview-background-files/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/settings/preview-background-files":{"post":{"summary":"Add a preview background file to a project","description":"Add a preview background file to the settings of a project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["preview_background_file_id"],"properties":{"preview_background_file_id":{"type":"string","format":"uuid","description":"Preview background file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The updated project","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/preview-background-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"preview_background_file_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/preview-background-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"preview_background_file_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the preview background files of a project","description":"Get the preview background files of a project.","responses":{"200":{"description":"The list of preview background files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/preview-background-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/settings/preview-background-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/metadata-descriptors":{"post":{"summary":"Create a metadata descriptor","description":"Create a metadata descriptor in a project. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. Administrators and managers of the project can use this route. A supervisor of the project can use it only when the descriptor has at least one department and the departments of the descriptor include every department of the supervisor. A supervisor with no department can use it for any descriptor that has departments.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"entity_type":{"type":"string","description":"Entity type for the metadata descriptor","enum":["Asset","Shot","Edit","Episode","Sequence","Project","Task"],"default":"Asset","example":"Asset"},"task_type_id":{"type":"string","format":"uuid","description":"Task type the descriptor is scoped to. Required for Task descriptors, forbidden otherwise.","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Name of the metadata descriptor","example":"Custom Field"},"data_type":{"type":"string","description":"Type of data (string, number, boolean, etc.)","default":"string","example":"string"},"for_client":{"type":"string","description":"Whether the descriptor is for client","default":"False","example":"True"},"choices":{"type":"array","description":"List of choices for the descriptor","items":{"type":"string"},"example":["option1","option2"]},"departments":{"type":"array","description":"List of departments for the descriptor","items":{"type":"string"},"example":["department1","department2"]}}}}}},"responses":{"201":{"description":"The new descriptor","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Metadata descriptor unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Metadata descriptor name","example":"Custom Field"},"data_type":{"type":"string","description":"Metadata descriptor data type","example":"string"},"departments":{"type":"array","description":"Departments the descriptor is limited to","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"400":{"description":"A value is not valid, the task type does not exist, or the name is used by a built-in field"},"403":{"description":"You cannot create this descriptor"},"404":{"description":"A department does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"entity_type\": \"Asset\",\n  \"name\": \"Custom Field\",\n  \"data_type\": \"string\",\n  \"for_client\": \"True\",\n  \"choices\": [\n    \"option1\",\n    \"option2\"\n  ],\n  \"departments\": [\n    \"department1\",\n    \"department2\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"entity_type\": \"Asset\",\n    \"name\": \"Custom Field\",\n    \"data_type\": \"string\",\n    \"for_client\": \"True\",\n    \"choices\": [\n        \"option1\",\n        \"option2\"\n    ],\n    \"departments\": [\n        \"department1\",\n        \"department2\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the metadata descriptors of a project","description":"Get the metadata descriptors of a project. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. A client gets only the descriptors for clients. A vendor gets only the descriptors of their departments and the descriptors without department.","responses":{"200":{"description":"The list of descriptors","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/metadata-descriptors/reorder":{"post":{"summary":"Reorder the metadata descriptors of a project","description":"Set the order of the metadata descriptors of an entity type. Give the descriptor identifiers in the new order. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity_type","descriptor_ids"],"properties":{"entity_type":{"type":"string","description":"Entity type for the metadata descriptors","enum":["Asset","Shot","Edit","Episode","Sequence","Project","Task"],"example":"Asset"},"descriptor_ids":{"type":"array","description":"List of metadata descriptor IDs in the desired order","items":{"type":"string","format":"uuid"},"example":["b35b7fb5-df86-5776-b181-68564193d360","c46c80c6-e097-6887-c292-79675204e470"]}}}}}},"responses":{"200":{"description":"The reordered descriptors","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Metadata descriptor unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Metadata descriptor name","example":"Custom Field"},"position":{"type":"integer","description":"Position of the descriptor","example":1},"entity_type":{"type":"string","description":"Entity type","example":"Asset"}}}}}}},"400":{"description":"The body is not valid, or a descriptor does not exist"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/reorder\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"entity_type\": \"Asset\",\n  \"descriptor_ids\": [\n    \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"c46c8gc6-eg97-6887-c292-79675204e47\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/reorder\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"entity_type\": \"Asset\",\n    \"descriptor_ids\": [\n        \"b35b7fb5-df86-5776-b181-68564193d36\",\n        \"c46c8gc6-eg97-6887-c292-79675204e47\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/metadata-descriptors/{metadata_descriptor_id}":{"get":{"summary":"Get a metadata descriptor","description":"Get a metadata descriptor of a project. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. A client gets only the descriptors for clients. A vendor gets only the descriptors of their departments and the descriptors without department.","responses":{"200":{"description":"The descriptor","content":{"application/json":{"schema":{"type":"object"}}}},"403":{"description":"You cannot read this descriptor"},"404":{"description":"The project has no descriptor with this identifier"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"metadata_descriptor_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Metadata descriptor unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a metadata descriptor","description":"Delete a metadata descriptor of a project. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. Administrators and managers of the project can use this route. A supervisor of the project can delete it only when the descriptor has at least one department and the departments of the descriptor include every department of the supervisor.","responses":{"204":{"description":"The descriptor is deleted"},"403":{"description":"You cannot change this descriptor"},"404":{"description":"The project has no descriptor with this identifier"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"metadata_descriptor_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Metadata descriptor unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a metadata descriptor","description":"Update a metadata descriptor of a project. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. Send every field. A field you leave out goes back to its default value, except the name. Administrators and managers of the project can use this route. A supervisor of the project can use it only when the descriptor, with the departments you send, has at least one department and these departments include every department of the supervisor.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the metadata descriptor, kept when left out","example":"Custom Field"},"for_client":{"type":"string","description":"Whether the descriptor is for client","default":"False","example":"True"},"data_type":{"type":"string","default":"string","description":"Type of the values, for example string, number, list or boolean"},"choices":{"type":"array","description":"List of choices for the descriptor","items":{"type":"string"},"example":["option1","option2"]},"departments":{"type":"array","description":"List of departments for the descriptor","items":{"type":"string"},"example":["department1","department2"]}}}}}},"responses":{"200":{"description":"The updated descriptor","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The name is empty, the data type is not valid, or the name is used by another column of the same type, by a built-in field, or is too long"},"403":{"description":"You cannot change this descriptor"},"404":{"description":"The project has no descriptor with this identifier, or a department does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"metadata_descriptor_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Metadata descriptor unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Custom Field\",\n  \"for_client\": \"True\",\n  \"choices\": [\n    \"option1\",\n    \"option2\"\n  ],\n  \"departments\": [\n    \"department1\",\n    \"department2\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/metadata-descriptors/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Custom Field\",\n    \"for_client\": \"True\",\n    \"choices\": [\n        \"option1\",\n        \"option2\"\n    ],\n    \"departments\": [\n        \"department1\",\n        \"department2\"\n    ]\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/metadata-descriptors/all-projects":{"post":{"summary":"Create a metadata descriptor in all projects","description":"Create the same metadata descriptor in your projects, in one request. A project that already has a descriptor with this field name is skipped. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. The route changes the open projects where you are a manager. An administrator changes all the open projects. Your global role must be manager or administrator. The role set on a project does not open this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"entity_type":{"type":"string","default":"Asset","enum":["Asset","Shot","Edit","Episode","Sequence","Project"]},"name":{"type":"string"},"data_type":{"type":"string","default":"string"},"for_client":{"type":"boolean","default":false,"description":"Show the column to the clients"},"choices":{"type":"array","items":{"type":"string"},"description":"Values of a list column"},"departments":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Departments that see the column"}}}}}},"responses":{"201":{"description":"The new descriptors"},"400":{"description":"A value is not valid, or the name is used by a built-in field"},"403":{"description":"Your global role is not manager or administrator"}},"tags":["Projects"]}},"/actions/metadata-descriptors/all-projects/reorder":{"post":{"summary":"Reorder the metadata descriptors in all projects","description":"Set the same order of columns in your projects, in one request. Give the field names in the new order. The route changes the open projects where you are a manager. An administrator changes all the open projects. Your global role must be manager or administrator. The role set on a project does not open this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity_type","field_order"],"properties":{"entity_type":{"type":"string","description":"Entity type of the descriptors: Asset, Shot, Edit, Episode, Sequence or Project"},"field_order":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"The updated descriptors"},"400":{"description":"The body is not valid"},"403":{"description":"Your global role is not manager or administrator"}},"tags":["Projects"]}},"/data/metadata-descriptors/all-projects/{field_name}":{"delete":{"summary":"Delete a metadata descriptor in all projects","description":"Delete the metadata descriptors with this field name in your projects, in one request. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. The route changes the open projects where you are a manager. An administrator changes all the open projects. Your global role must be manager or administrator. The role set on a project does not open this route.","responses":{"200":{"description":"The identifiers of the deleted descriptors"},"400":{"description":"The entity type is not valid"},"403":{"description":"Your global role is not manager or administrator"}},"parameters":[{"in":"path","name":"field_name","required":true,"schema":{"type":"string"},"description":"Field name of the descriptor, the key in the data field"},{"in":"query","name":"entity_type","required":true,"schema":{"type":"string"},"description":"Entity type of the descriptor: Asset, Shot, Edit, Episode, Sequence or Project"}],"tags":["Projects"]},"put":{"summary":"Update a metadata descriptor in all projects","description":"Update the metadata descriptors with this field name in your projects, in one request. A metadata descriptor describes an extra column. The values of the column are in the data field of the entities. The route changes the open projects where you are a manager. An administrator changes all the open projects. Your global role must be manager or administrator. The role set on a project does not open this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["entity_type"],"properties":{"entity_type":{"type":"string","description":"Entity type of the descriptor: Asset, Shot, Edit, Episode, Sequence or Project"},"name":{"type":"string","description":"New name of the column"},"for_client":{"type":"boolean","default":false,"description":"Show the column to the clients"},"data_type":{"type":"string","default":"string","description":"Type of the values, for example string, number, list or boolean"},"choices":{"type":"array","items":{"type":"string"},"description":"Values of a list column"},"departments":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Departments that see the column"}}}}}},"responses":{"200":{"description":"The updated descriptors"},"400":{"description":"A value is not valid, or the name is used by another column of the same type, by a built-in field, or is too long"},"403":{"description":"Your global role is not manager or administrator"}},"parameters":[{"in":"path","name":"field_name","required":true,"schema":{"type":"string"},"description":"Field name of the descriptor, the key in the data field"}],"tags":["Projects"]}},"/data/projects/{project_id}/milestones":{"get":{"summary":"Get the milestones of a project","description":"Get the milestones of the schedule of a project. Clients cannot use this route.","responses":{"200":{"description":"The list of milestones","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project, or you are a client"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/milestones\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/milestones\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/schedule-items":{"get":{"summary":"Get the schedule items of a project","description":"Get the schedule items of a project. A schedule item gives the start date and the end date of a part of the production in the schedule. Clients and vendors cannot use this route.","responses":{"200":{"description":"The list of schedule items","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/schedule-items/task-types":{"get":{"summary":"Get the schedule items of the task types","description":"Get the schedule items of the task types that have tasks in a project. A schedule item gives the start date and the end date of a part of the production in the schedule. If the project has task type settings, the route skips the other task types. Vendors cannot use this route.","responses":{"200":{"description":"The list of schedule items","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/asset-types":{"get":{"summary":"Get the schedule items of the asset types for a task type","description":"Get the schedule items of the asset types of a project, for a task type. A schedule item gives the start date and the end date of a part of the production in the schedule. Give episode_id to get the items of one episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of schedule items","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Restrict results to asset types of the given episode"},{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/b35b7fb5-df86-5776-b181-68564193d36/asset-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/b35b7fb5-df86-5776-b181-68564193d36/asset-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/edits":{"get":{"summary":"Get the schedule items of the edits for a task type","description":"Get the schedule items of the edits of a project, for a task type. A schedule item gives the start date and the end date of a part of the production in the schedule. Give episode_id to get the items of one episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of schedule items","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Restrict results to edits of the given episode"},{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/episodes":{"get":{"summary":"Get the schedule items of the episodes for a task type","description":"Get the schedule items of the episodes of a project, for a task type. A schedule item gives the start date and the end date of a part of the production in the schedule. Give episode_id to get the items of one episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of schedule items","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Restrict results to the given episode"},{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/b35b7fb5-df86-5776-b181-68564193d36/episodes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/b35b7fb5-df86-5776-b181-68564193d36/episodes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/schedule-items/{task_type_id}/sequences":{"get":{"summary":"Get the schedule items of the sequences for a task type","description":"Get the schedule items of the sequences of a project, for a task type. A schedule item gives the start date and the end date of a part of the production in the schedule. Give episode_id to get the items of one episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of schedule items","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Restrict results to sequences of the given episode"},{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/b35b7fb5-df86-5776-b181-68564193d36/sequences\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/schedule-items/b35b7fb5-df86-5776-b181-68564193d36/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/time-spents":{"get":{"summary":"Get the time spents of a project","description":"Get the time spent entries of a project. Clients and vendors cannot use this route.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/budgets":{"post":{"summary":"Create a budget","description":"Create a budget in a project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Budget name","example":"New Budget"},"currency":{"type":"string","description":"Budget currency code","default":"USD","example":"USD"}}}}}},"responses":{"201":{"description":"The new budget","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Budget unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Budget name","example":"New Budget"},"currency":{"type":"string","description":"Budget currency code","example":"USD"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"New Budget\",\n  \"currency\": \"USD\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"New Budget\",\n    \"currency\": \"USD\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the budgets of a project","description":"Get the budgets of a project. You must be a manager of the project.","responses":{"200":{"description":"The list of budgets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/budgets/{budget_id}":{"get":{"summary":"Get a budget","description":"Get a budget of a project. You must be a manager of the project.","responses":{"200":{"description":"The budget","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a budget","description":"Delete a budget of a project and its entries. You must be a manager of the project.","responses":{"204":{"description":"The budget is deleted"},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a budget","description":"Change the name or the currency of a budget. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Budget name","example":"New Budget"},"currency":{"type":"string","description":"Budget currency code","example":"USD"}}}}}},"responses":{"200":{"description":"The updated budget","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"New Budget\",\n  \"currency\": \"USD\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"New Budget\",\n    \"currency\": \"USD\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/budgets/{budget_id}/entries":{"post":{"summary":"Create a budget entry","description":"Create an entry in a budget of a project. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["department_id"],"properties":{"department_id":{"type":"string","format":"uuid","description":"Department unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","description":"Budget entry start date","example":"2025-01-01"},"months_duration":{"type":"integer","description":"Budget entry duration in months","example":12},"daily_salary":{"type":"number","format":"float","description":"Daily salary amount","example":100.0},"position":{"type":"string","description":"Position name","example":"Artist"},"seniority":{"type":"string","description":"Seniority level","example":"Mid"}}}}}},"responses":{"201":{"description":"The new budget entry","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Budget entry unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","description":"Department unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"start_date\": \"2025-01-01\",\n  \"months_duration\": 12,\n  \"daily_salary\": 100,\n  \"position\": \"Artist\",\n  \"seniority\": \"Mid\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"start_date\": \"2025-01-01\",\n    \"months_duration\": 12,\n    \"daily_salary\": 100,\n    \"position\": \"Artist\",\n    \"seniority\": \"Mid\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the entries of a budget","description":"Get the entries of a budget of a project. Each entry gives the salary cost of a person or a position for a period. You must be a manager of the project.","responses":{"200":{"description":"The list of budget entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/budgets/{budget_id}/entries/{entry_id}":{"get":{"summary":"Get a budget entry","description":"Get an entry of a budget. You must be a manager of the project.","responses":{"200":{"description":"The budget entry","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project, or the entry does not exist in this budget"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"path","name":"entry_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget entry","example":"c46c80c6-e097-6887-c292-79675204e470"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries/c46c8gc6-eg97-6887-c292-79675204e47\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries/c46c8gc6-eg97-6887-c292-79675204e47\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a budget entry","description":"Delete an entry of a budget. You must be a manager of the project.","responses":{"204":{"description":"The budget entry is deleted"},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project, or the entry does not exist in this budget"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"path","name":"entry_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget entry","example":"c46c80c6-e097-6887-c292-79675204e470"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries/c46c8gc6-eg97-6887-c292-79675204e47\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries/c46c8gc6-eg97-6887-c292-79675204e47\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a budget entry","description":"Update the fields of an entry of a budget. Send only the fields to change. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"department_id":{"type":"string","format":"uuid","description":"Department unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"person_id":{"type":"string","format":"uuid","description":"Person unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"start_date":{"type":"string","format":"date","description":"Budget entry start date","example":"2025-01-01"},"months_duration":{"type":"integer","description":"Budget entry duration in months","example":12},"daily_salary":{"type":"number","format":"float","description":"Daily salary amount","example":100.0},"position":{"type":"string","description":"Position name","example":"Artist"},"seniority":{"type":"string","description":"Seniority level","example":"Mid"},"exceptions":{"type":"object","description":"Map of amount exceptions. Key is the date and value is the amount","example":{"2025-01-01":1000,"2025-02-01":2000}}}}}}},"responses":{"200":{"description":"The updated budget entry","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The budget does not exist in this project, or the entry does not exist in this budget"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"budget_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"path","name":"entry_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the budget entry","example":"c46c80c6-e097-6887-c292-79675204e470"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries/c46c8gc6-eg97-6887-c292-79675204e47\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"start_date\": \"2025-01-01\",\n  \"months_duration\": 12,\n  \"daily_salary\": 100,\n  \"position\": \"Artist\",\n  \"seniority\": \"Mid\",\n  \"exceptions\": {\n    \"2025-01-01\": 1000,\n    \"2025-02-01\": 2000\n  }\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/b35b7fb5-df86-5776-b181-68564193d36/entries/c46c8gc6-eg97-6887-c292-79675204e47\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"start_date\": \"2025-01-01\",\n    \"months_duration\": 12,\n    \"daily_salary\": 100,\n    \"position\": \"Artist\",\n    \"seniority\": \"Mid\",\n    \"exceptions\": {\n        \"2025-01-01\": 1000,\n        \"2025-02-01\": 2000\n    }\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/budgets/time-spents":{"get":{"summary":"Get the time spent of a project by month","description":"Get the total time spent of a project for each month. You must be an administrator.","responses":{"200":{"description":"The total time spent for each month","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/time-spents\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/budgets/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/production-schedule-versions/{production_schedule_version_id}/task-links":{"get":{"summary":"Get the task dates of a schedule version","description":"Get the task links of a production schedule version. Each link gives the start date and the due date of a task in this version. A production schedule version is a copy of the schedule. You can change it, and then apply it to the tasks. Clients and vendors cannot use this route.","responses":{"200":{"description":"The list of task links","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The production schedule version does not exist, or the identifier is not a valid UUID"}},"parameters":[{"in":"path","name":"production_schedule_version_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the production schedule version","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the links of the tasks of this task type","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":false},"description":"Add the related objects to each link"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/task-links?task_type_id=b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/task-links\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"task_type_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/production-schedule-versions/{production_schedule_version_id}/set-task-links-from-production":{"post":{"summary":"Copy the task dates into a schedule version","description":"Copy the start dates and the due dates of the tasks of the project into a production schedule version. A production schedule version is a copy of the schedule. You can change it, and then apply it to the tasks. You must be a manager of the project.","responses":{"200":{"description":"The task links of the version","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"task_link_count":{"type":"integer","description":"Number of task links copied"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The production schedule version does not exist, or the identifier is not a valid UUID"}},"parameters":[{"in":"path","name":"production_schedule_version_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the production schedule version","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/production-schedule-versions/{production_schedule_version_id}/set-task-links-from-production-schedule-version":{"post":{"summary":"Copy the task dates of another schedule version","description":"Copy the task dates of another production schedule version into this version. A production schedule version is a copy of the schedule. You can change it, and then apply it to the tasks. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["production_schedule_version_id"],"properties":{"production_schedule_version_id":{"type":"string","format":"uuid","description":"Source production schedule version unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"200":{"description":"The task links of the version","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"task_link_count":{"type":"integer","description":"Number of task links copied"}}}}}},"400":{"description":"The body is not valid, the two versions are not in the same project, or the source version is the target version"},"403":{"description":"You are not a manager of the project"},"404":{"description":"A production schedule version does not exist"}},"parameters":[{"in":"path","name":"production_schedule_version_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the production schedule version","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production-schedule-version\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"production_schedule_version_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/set-task-links-from-production-schedule-version\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"production_schedule_version_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/production-schedule-versions/{production_schedule_version_id}/apply-to-production":{"post":{"summary":"Apply a schedule version to the tasks","description":"Copy the start dates and the due dates of a production schedule version to the tasks of the project. A production schedule version is a copy of the schedule. You can change it, and then apply it to the tasks. You must be a manager of the project.","responses":{"200":{"description":"The number of updated tasks","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"task_count":{"type":"integer"}}}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The production schedule version does not exist, or the identifier is not a valid UUID"}},"parameters":[{"in":"path","name":"production_schedule_version_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the production schedule version","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Projects"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/apply-to-production\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/production-schedule-versions/a24a6ea4-ce75-4665-a070-57453082c25/apply-to-production\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/project-templates/{project_template_id}/task-types":{"post":{"summary":"Add a task type to a project template","description":"Add a task type to a project template. If the task type is already in the template, the route changes its values. A request without bitrates keeps the current bitrates. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_id"],"properties":{"task_type_id":{"type":"string","format":"uuid","description":"Task type to add"},"priority":{"type":"integer","description":"Priority of the task type in the template"},"hd_bitrate_compression":{"type":"integer","minimum":1,"description":"Bitrate of the high definition movies"},"ld_bitrate_compression":{"type":"integer","minimum":1,"description":"Bitrate of the low definition movies"},"is_client_visible":{"type":"boolean","description":"Show the task type to the clients. If the field is not in the body, an existing link keeps its value."}}}}}},"responses":{"201":{"description":"The new link"},"400":{"description":"The body is not valid, or an identifier does not exist"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]},"get":{"summary":"Get the task types of a project template","description":"Get the task types of a project template. A project template keeps a production configuration. You can apply it to a project. You must have the manager role or a higher role.","responses":{"200":{"description":"The list of task types"},"403":{"description":"You do not have the manager role"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/actions/project-templates/{project_template_id}/task-types/reorder":{"post":{"summary":"Reorder the task types of a project template","description":"Set the priority of the task types of a project template in one request. The order of the list gives the priority. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_ids"],"properties":{"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types in the new order"}}}}}},"responses":{"200":{"description":"The updated links"},"400":{"description":"The body is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/task-types/{task_type_id}":{"delete":{"summary":"Remove a task type from a project template","description":"Remove a task type from a project template. The task type is not deleted. You must be an administrator.","responses":{"204":{"description":"The task type is removed from the template"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"task_type_id","required":true,"description":"Unique identifier of the task type","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/task-statuses":{"post":{"summary":"Add a task status to a project template","description":"Add a task status to a project template. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_status_id"],"properties":{"task_status_id":{"type":"string","format":"uuid","description":"Task status to add"},"priority":{"type":"integer","description":"Priority of the task status in the template"},"roles_for_board":{"type":"array","items":{"type":"string"},"description":"Roles that see the task status on the board"},"is_client_allowed":{"type":"boolean","nullable":true,"description":"Let the clients use the task status. Send null to use the value of the studio. If the field is not in the body, an existing link keeps its value."}}}}}},"responses":{"201":{"description":"The new link"},"400":{"description":"The body is not valid, or an identifier does not exist"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]},"get":{"summary":"Get the task statuses of a project template","description":"Get the task statuses of a project template. A project template keeps a production configuration. You can apply it to a project. You must have the manager role or a higher role.","responses":{"200":{"description":"The list of task statuses"},"403":{"description":"You do not have the manager role"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/actions/project-templates/{project_template_id}/task-statuses/reorder":{"post":{"summary":"Reorder the task statuses of a project template","description":"Set the priority of the task statuses of a project template in one request. The order of the list gives the priority. The board roles of each link do not change. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_status_ids"],"properties":{"task_status_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task statuses in the new order"}}}}}},"responses":{"200":{"description":"The updated links"},"400":{"description":"The body is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/task-statuses/{task_status_id}":{"delete":{"summary":"Remove a task status from a project template","description":"Remove a task status from a project template. The task status is not deleted. You must be an administrator.","responses":{"204":{"description":"The task status is removed from the template"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"task_status_id","required":true,"description":"Unique identifier of the task status","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/asset-types":{"post":{"summary":"Add an asset type to a project template","description":"Add an asset type to a project template. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["asset_type_id"],"properties":{"asset_type_id":{"type":"string","format":"uuid","description":"Asset type to add"}}}}}},"responses":{"201":{"description":"The new link"},"400":{"description":"The body is not valid, or an identifier does not exist"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]},"get":{"summary":"Get the asset types of a project template","description":"Get the asset types of a project template. A project template keeps a production configuration. You can apply it to a project. You must have the manager role or a higher role.","responses":{"200":{"description":"The list of asset types. Each one gives id, name and workflow, the task type ids of its workflow. An empty workflow means that the asset type follows the studio workflow."},"403":{"description":"You do not have the manager role"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/asset-types/{asset_type_id}":{"delete":{"summary":"Remove an asset type from a project template","description":"Remove an asset type from a project template. The asset type is not deleted. You must be an administrator.","responses":{"204":{"description":"The asset type is removed from the template"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_type_id","required":true,"description":"Unique identifier of the asset type","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/asset-types/{asset_type_id}/task-types":{"put":{"summary":"Set the workflow of an asset type for a project template","description":"Replace the task types allowed for an asset type in a project template, instead of the studio workflow. An empty list restores the studio workflow. The asset type and the task types must be in the template, and the task types must be asset task types. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_type_ids"],"properties":{"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types of the workflow","example":["c46c8fc6-e097-6887-c292-796752040e47"]}}}}}},"responses":{"200":{"description":"The asset type and its workflow","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"workflow":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Task types of the workflow","example":["c46c8fc6-e097-6887-c292-796752040e47"]}}}}}},"400":{"description":"The body is not valid, or the asset type or a task type is not valid for the template"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"asset_type_id","required":true,"description":"Unique identifier of the asset type","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/status-automations":{"post":{"summary":"Add a status automation to a project template","description":"Add a status automation to a project template. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["status_automation_id"],"properties":{"status_automation_id":{"type":"string","format":"uuid","description":"Status automation to add"}}}}}},"responses":{"201":{"description":"The new link"},"400":{"description":"The body is not valid, or an identifier does not exist"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]},"get":{"summary":"Get the status automations of a project template","description":"Get the status automations of a project template. A project template keeps a production configuration. You can apply it to a project. You must have the manager role or a higher role.","responses":{"200":{"description":"The list of status automations"},"403":{"description":"You do not have the manager role"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/status-automations/{status_automation_id}":{"delete":{"summary":"Remove a status automation from a project template","description":"Remove a status automation from a project template. The status automation is not deleted. You must be an administrator.","responses":{"204":{"description":"The status automation is removed from the template"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"status_automation_id","required":true,"description":"Unique identifier of the status automation","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/metadata-descriptors":{"put":{"summary":"Replace the metadata descriptors of a project template","description":"Replace the metadata descriptors of a project template. Send a list of descriptors, or an object with a metadata_descriptors list. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"array","items":{"type":"object"}},{"type":"object","properties":{"metadata_descriptors":{"type":"array","items":{"type":"object"}}}}]}}}},"responses":{"200":{"description":"The updated project template"},"400":{"description":"A descriptor is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/preview-background-files":{"post":{"summary":"Add a preview background file to a project template","description":"Add a preview background file to a project template. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["preview_background_file_id"],"properties":{"preview_background_file_id":{"type":"string","format":"uuid","description":"Preview background file to add"}}}}}},"responses":{"201":{"description":"The new link"},"400":{"description":"The body is not valid, or an identifier does not exist"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]},"get":{"summary":"Get the preview background files of a project template","description":"Get the preview background files of a project template. A project template keeps a production configuration. You can apply it to a project. You must have the manager role or a higher role.","responses":{"200":{"description":"The list of preview background files"},"403":{"description":"You do not have the manager role"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/preview-background-files/{preview_background_file_id}":{"delete":{"summary":"Remove a preview background file from a project template","description":"Remove a preview background file from a project template. The preview background file is not deleted. You must be an administrator.","responses":{"204":{"description":"The preview background file is removed from the template"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"preview_background_file_id","required":true,"description":"Unique identifier of the preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/{project_template_id}/default-preview-background-file":{"put":{"summary":"Set the default preview background of a project template","description":"Set the default preview background file of a project template. Send null to remove the default background. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"default_preview_background_file_id":{"type":"string","format":"uuid","description":"Default preview background file","nullable":true}}}}}},"responses":{"200":{"description":"The updated project template"},"400":{"description":"The preview background file is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project template does not exist"}},"parameters":[{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/project-templates/from-project/{project_id}":{"post":{"summary":"Create a project template from a project","description":"Create a project template from the configuration of a project. The template gets the production settings, the task types, the task statuses, the asset types, the asset type workflows, the status automations, the metadata descriptors, the file tree and the free data. The template does not get the team, the dates, the preview backgrounds, the project status or the production data. You must be an administrator.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Name of the template"},"description":{"type":"string","description":"Description of the template"}}}}}},"responses":{"201":{"description":"The new project template"},"400":{"description":"The body is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/projects/{project_id}/apply-template/{project_template_id}":{"post":{"summary":"Apply a project template to a project","description":"Apply the configuration of a project template to a project. The current links of the project stay. The links that the project already has are skipped. The production settings of the template are written to the project. The workflow of an asset type is copied unless the project already sets one for this asset type. You must be an administrator.","responses":{"200":{"description":"The updated project"},"400":{"description":"A value of the template is not valid"},"403":{"description":"You are not an administrator"},"404":{"description":"The project or the project template does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"project_template_id","required":true,"description":"Unique identifier of the project template","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}}],"tags":["Project Templates"]}},"/data/shots":{"get":{"summary":"Get shots","description":"Get the shots. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. With sequence_id, the route uses the project of the sequence. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH020"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"query","name":"sequence_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this sequence"},{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"query","name":"parent_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this parent"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots?sequence_id=a24a6ea4-ce75-4665-a070-57453082c25&project_id=a24a6ea4-ce75-4665-a070-57453082c25&parent_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"sequence_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"parent_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/all":{"get":{"summary":"Get shots","description":"Get the shots. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. With sequence_id, the route uses the project of the sequence. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH020"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"query","name":"sequence_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the shots of this sequence"},{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"query","name":"parent_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this parent"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/all?sequence_id=a24a6ea4-ce75-4665-a070-57453082c25&project_id=a24a6ea4-ce75-4665-a070-57453082c25&parent_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/all\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"sequence_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"parent_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/with-tasks":{"get":{"summary":"Get shots with their tasks","description":"Get the shots with the tasks of each shot. Filter with project_id or episode_id. Use episode_id=all to get all the episodes. A client gets the tasks without the studio fields. If you are not an administrator, you must give project_id. A vendor gets only the entities of their tasks, without the hidden metadata columns. The response can have an ETag. Send it in If-None-Match to get a 304 response when the data did not change.","responses":{"200":{"description":"The list of shots with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"}}}}}}}}}},"304":{"description":"The data did not change"},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this project"},{"in":"query","name":"compact","description":"Encode shots and tasks as positional value arrays (halves the payload). Field names are given by the shot_fields and task_fields entries of the response, map values by name, never by hardcoded position.","schema":{"type":"boolean","default":false}},{"in":"query","name":"stream","description":"Stream the response as NDJSON (one header line, then one shot per line) instead of a single JSON document, to keep server memory flat on large productions.","schema":{"type":"boolean","default":false}},{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string"},"description":"Get only the entities of this episode. Use all to get the entities of all the episodes."},{"in":"query","name":"assigned_to","required":false,"schema":{"type":"string"},"description":"With any value, get only the shots that have a task assigned to you."}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}":{"get":{"summary":"Get a shot","description":"Get a shot with its project name, sequence, episode and tasks. A vendor must have a task assigned on the shot. A client gets the tasks without the studio fields.","responses":{"200":{"description":"The shot","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":120},"data":{"type":"object","example":{"camera":"camA","cut_in":1001}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this shot"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a shot","description":"Delete a shot. The creator of the shot can delete it if the creator is in the project team. Other users must be managers of the project. If the shot has tasks, the shot is only marked as canceled. Use force=true to delete the shot and all its related data. Only a manager of the project can use force=true.","responses":{"204":{"description":"The shot is deleted"},"403":{"description":"You cannot delete this shot"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"},{"in":"query","name":"force","required":false,"example":false,"schema":{"type":"boolean"},"description":"Delete the shot and all its related data"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a shot","description":"Update the name, the description, the number of frames, the metadata, the sequence or the canceled flag of a shot. Send only the fields to change. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Data to update on the shot","properties":{"name":{"type":"string","example":"SH010 new name"},"description":{"type":"string","example":"Update description for the shot"},"nb_frames":{"type":"integer","example":24},"data":{"type":"object","example":{"camera":"camA","cut_in":1001}},"parent_id":{"type":"string","format":"uuid","description":"New sequence of the shot"},"canceled":{"type":"boolean","description":"Mark the shot as canceled"}}}}}},"responses":{"200":{"description":"The updated shot","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":120},"data":{"type":"object","example":{"camera":"camA","cut_in":1001}}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"SH010 new name\",\n  \"description\": \"Update description for the shot\",\n  \"nb_frames\": 24,\n  \"data\": {\n    \"camera\": \"camA\",\n    \"cut_in\": 1001\n  }\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"SH010 new name\",\n    \"description\": \"Update description for the shot\",\n    \"nb_frames\": 24,\n    \"data\": {\n        \"camera\": \"camA\",\n        \"cut_in\": 1001\n    }\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/assets":{"get":{"summary":"Get the assets of a shot","description":"Get the assets of the casting of a shot.","responses":{"200":{"description":"The list of assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Character A"},"entity_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/assets\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/task-types":{"get":{"summary":"Get the task types of a shot","description":"Get the task types of the tasks of a shot.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/tasks":{"get":{"summary":"Get the tasks of a shot","description":"Get the tasks of a shot.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/preview-files":{"get":{"summary":"Get the previews of a shot","description":"Get the preview files of a shot. The response is a map of task type identifiers to lists of previews.","responses":{"200":{"description":"A map of task type identifiers to lists of previews","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":3},"file_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}},"example":{"a24a6ea4-ce75-4665-a070-57453082c250":[{"id":"b24a6ea4-ce75-4665-a070-57453082c250","revision":3,"file_id":"c24a6ea4-ce75-4665-a070-57453082c250"}]}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/shots/{shot_id}/versions":{"get":{"summary":"Get the versions of a shot","description":"Get the saved versions of the data of a shot. A version is saved when the frames or the name of the shot change.","responses":{"200":{"description":"The list of versions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/versions\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/shots/a24a6ea4-ce75-4665-a070-57453082c25/versions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/all":{"get":{"summary":"Get scenes","description":"Get the scenes. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. Vendors cannot use this route.","responses":{"200":{"description":"The list of scenes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC001"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a vendor"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/all?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/all\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/with-tasks":{"get":{"summary":"Get scenes with their tasks","description":"Get the scenes with the tasks of each scene. Filter with project_id or episode_id. Use episode_id=all to get all the episodes. A client gets the tasks without the studio fields. If you are not an administrator, you must give project_id. A vendor gets only the scenes and the tasks that are assigned to the vendor.","responses":{"200":{"description":"The list of scenes with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC001"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Layout"}}}}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string"},"description":"Get only the entities of this episode. Use all to get the entities of all the episodes."}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}":{"get":{"summary":"Get a scene","description":"Get a scene with its related data.","responses":{"200":{"description":"The scene","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC001"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a scene","description":"Delete a scene. The creator of the scene can delete it if the creator is in the project team. Other users must be managers of the project. If data is still linked to the scene, the scene is only marked as canceled.","responses":{"204":{"description":"The scene is deleted"},"403":{"description":"You cannot delete this scene"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}/tasks":{"get":{"summary":"Get the tasks of a scene","description":"Get the tasks of a scene.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC001 Layout"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}/task-types":{"get":{"summary":"Get the task types of a scene","description":"Get the task types of the tasks of a scene.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}/shots":{"post":{"summary":"Link a shot to a scene","description":"Mark a scene as the source of a shot. The shot must be in the project of the scene. A client or a vendor of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["shot_id"],"properties":{"shot_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The link between the scene and the shot","content":{"application/json":{"schema":{"type":"object","properties":{"scene_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"shot_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project, you are a client or a vendor, or the shot is in another project"},"404":{"description":"The scene or the shot does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"shot_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"shot_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the shots of a scene","description":"Get the shots that come from a scene.","responses":{"200":{"description":"The list of shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/scenes/{scene_id}/shots/{shot_id}":{"delete":{"summary":"Remove a shot from a scene","description":"Remove a shot from a scene. The shot is not deleted. The shot must be in the project of the scene. A client or a vendor of the project cannot use this route.","responses":{"204":{"description":"The shot is removed from the scene"},"403":{"description":"You do not have access to this project, you are a client or a vendor, or the shot is in another project"},"404":{"description":"The scene or the shot does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene"},{"in":"path","name":"shot_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/shots/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/scenes/a24a6ea4-ce75-4665-a070-57453082c25/shots/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes":{"get":{"summary":"Get episodes","description":"Get the episodes. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. A vendor gets only the episodes of their tasks.","responses":{"200":{"description":"The list of episodes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"A short description of the episode"},"status":{"type":"string","example":"running"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the episodes of this project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/with-tasks":{"get":{"summary":"Get episodes with their tasks","description":"Get the episodes with the tasks of each episode. Filter with project_id or episode_id. Use episode_id=all to get all the episodes. A client gets the tasks without the studio fields. If you are not an administrator, you must give project_id. A vendor gets only the episodes and the tasks that are assigned to the vendor.","responses":{"200":{"description":"The list of episodes with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01 Layout"}}}}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string"},"description":"Get only the entities of this episode. Use all to get the entities of all the episodes."}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}":{"get":{"summary":"Get an episode","description":"Get an episode with its project name and related data.","responses":{"200":{"description":"The episode","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"A short description of the episode"},"status":{"type":"string","example":"running"}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an episode","description":"Delete an episode. The creator of the episode can delete it if the creator is in the project team. Other users must be managers of the project. Without force, the episode is deleted only if nothing is linked to it. If sequences, assets or tasks are still linked, the route returns 400. With force=true, the sequences, the shots, the assets and the tasks of the episode are deleted too. Only a manager of the project can use force=true.","responses":{"204":{"description":"The episode is deleted"},"400":{"description":"Some data are still linked to this episode"},"403":{"description":"You cannot delete this episode"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"},{"in":"query","name":"force","required":false,"example":false,"schema":{"type":"boolean"},"description":"Delete the episode and all its related data"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/shots":{"get":{"summary":"Get the shots of an episode","description":"Get the shots of an episode. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"},{"in":"query","name":"relations","required":false,"schema":{"type":"boolean","default":false},"description":"Add the related data to each shot"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/sequences":{"get":{"summary":"Get the sequences of an episode","description":"Get the sequences of an episode. Add a query parameter for each column to filter on. A vendor gets only the entities of their tasks, without the hidden metadata columns. The query filters do not apply to vendors. If episode_id is not a valid UUID, the response is an empty list.","responses":{"200":{"description":"The list of sequences","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"},{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the sequences of this project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/sequences?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/tasks":{"get":{"summary":"Get the tasks of an episode","description":"Get the tasks of an episode. A vendor gets only their assigned tasks on the episode.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01 Layout"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this episode"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/task-types":{"get":{"summary":"Get the task types of an episode","description":"Get the task types of the tasks of an episode.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/shot-tasks":{"get":{"summary":"Get the shot tasks of an episode","description":"Get the tasks of the shots of an episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01 Layout"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/shot-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/shot-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/asset-tasks":{"get":{"summary":"Get the asset tasks of an episode","description":"Get the tasks of the assets of an episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Character Modeling"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the episode"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/asset-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/asset-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences":{"get":{"summary":"Get sequences","description":"Get the sequences. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. A vendor gets the sequences of their tasks in the whole project, even with episode_id.","responses":{"200":{"description":"The list of sequences","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this episode"},{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project. Required if you are not an administrator and do not give episode_id."}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences?episode_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/with-tasks":{"get":{"summary":"Get sequences with their tasks","description":"Get the sequences with the tasks of each sequence. Filter with project_id or episode_id. Use episode_id=all to get all the episodes. A client gets the tasks without the studio fields. If you are not an administrator, you must give project_id. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of sequences with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ010 Editing"}}}}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this project"},{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string"},"description":"Get only the entities of this episode. Use all to get the entities of all the episodes."}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/{sequence_id}":{"get":{"summary":"Get a sequence","description":"Get a sequence with its related data.","responses":{"200":{"description":"The sequence","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a sequence","description":"Delete a sequence. The creator of the sequence can delete it if the creator is in the project team. Other users must be managers of the project. Without force, the sequence is deleted only if nothing is linked to it. If shots, scenes or tasks are still linked, the route returns 400. With force=true, the shots, the scenes and the tasks of the sequence are deleted too. Only a manager of the project can use force=true.","responses":{"204":{"description":"The sequence is deleted"},"400":{"description":"Some data are still linked to this sequence"},"403":{"description":"You cannot delete this sequence"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"},{"in":"query","name":"force","required":false,"example":false,"schema":{"type":"boolean"},"description":"Delete the sequence and all its related data"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/{sequence_id}/shots":{"get":{"summary":"Get the shots of a sequence","description":"Get the shots of a sequence. Add a query parameter for each column to filter on. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"},{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the entities of this project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/shots?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/{sequence_id}/scenes":{"get":{"summary":"Get the scenes of a sequence","description":"Get the scenes of a sequence. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of scenes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/scenes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/scenes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/{sequence_id}/tasks":{"get":{"summary":"Get the tasks of a sequence","description":"Get the tasks of a sequence. A vendor gets only their assigned tasks. The relations parameter is ignored for a vendor.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/{sequence_id}/task-types":{"get":{"summary":"Get the task types of a sequence","description":"Get the task types of the tasks of a sequence.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this entity"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/sequences/{sequence_id}/shot-tasks":{"get":{"summary":"Get the shot tasks of a sequence","description":"Get the tasks of the shots of a sequence. Vendors cannot use this route.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence"},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","schema":{"type":"boolean","default":false}}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/shot-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/sequences/a24a6ea4-ce75-4665-a070-57453082c25/shot-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/shots":{"post":{"summary":"Create a shot","description":"Create a shot in a project. You can give the sequence, the description, the number of frames and the metadata. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"SH010"},"description":{"type":"string","example":"A short description of the shot"},"sequence_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":24},"data":{"type":"object","description":"Values of the metadata columns"}}}}}},"responses":{"201":{"description":"The new shot","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"sequence_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"nb_frames":{"type":"integer","example":24},"description":{"type":"string","example":"A short description of the shot"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"SH010\",\n  \"description\": \"A short description of the shot\",\n  \"sequence_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"nb_frames\": 24\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"SH010\",\n    \"description\": \"A short description of the shot\",\n    \"sequence_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"nb_frames\": 24\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the shots of a project","description":"Get the shots of a project. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of shots","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/scenes":{"post":{"summary":"Create a scene","description":"Create a scene in a project. You can give the sequence of the scene. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"Name of scene"},"sequence_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"201":{"description":"The new scene","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC001"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The sequence does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/scenes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Name of scene\",\n  \"sequence_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/scenes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Name of scene\",\n    \"sequence_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the scenes of a project","description":"Get the scenes of a project. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of scenes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SC001"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"parent_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/scenes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/scenes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/sequences":{"post":{"summary":"Create a sequence","description":"Create a sequence in a project. Give episode_id to put the sequence in an episode. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"description":{"type":"string","description":"Description of the sequence"},"name":{"type":"string","example":"SQ01"},"episode_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"data":{"type":"object","description":"Values of the metadata columns"}}}}}},"responses":{"201":{"description":"The new sequence","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"A sequence description"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The episode does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"SQ01\",\n  \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"SQ01\",\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the sequences of a project","description":"Get the sequences of a project. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of sequences","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SQ01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"episode_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes":{"post":{"summary":"Create an episode","description":"Create an episode in a project. The default status is running. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"EP01"},"description":{"type":"string","example":"A short description of the episode"},"status":{"type":"string","example":"running"},"data":{"type":"object","description":"Values of the metadata columns"}}}}}},"responses":{"201":{"description":"The new episode","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"A short description of the episode"},"status":{"type":"string","example":"running"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"EP01\",\n  \"description\": \"A short description of the episode\",\n  \"status\": \"running\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"EP01\",\n    \"description\": \"A short description of the episode\",\n    \"status\": \"running\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the episodes of a project","description":"Get the episodes of a project. A vendor gets only the entities of their tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of episodes","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"description":{"type":"string","example":"A short description of the episode"},"status":{"type":"string","example":"running"}}}}}}},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes/stats":{"get":{"summary":"Get the task statistics of the episodes","description":"Get the number of tasks of a project for each task status, each task type and each episode. A vendor gets the statistics of their tasks only. A client can use this route only if the project makes its statistics visible to clients (is_client_stats_visible).","responses":{"200":{"description":"The task statistics","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"integer","example":120},"frames":{"type":"integer","example":1440},"drawings":{"type":"integer","example":360}}}}},"example":{"episodeId1":{"taskTypeId1":{"taskStatusId1":{"count":50,"frames":600,"drawings":150},"taskStatusId2":{"count":70,"frames":840,"drawings":210}}},"all":{"all":{"taskStatusId1":{"count":200,"frames":2400,"drawings":600}}}}}}}},"403":{"description":"You do not have access to this project, or you are a client and the project hides its statistics from clients"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/stats\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/stats\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/episodes/retake-stats":{"get":{"summary":"Get the retake statistics of the episodes","description":"Get the number of retakes and of done tasks of a project, for each task type and each episode. The response also gives the change in time and the maximum number of retakes. A vendor gets the statistics of their tasks only. Clients cannot use this route.","responses":{"200":{"description":"The retake statistics","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"max_retake_count":{"type":"integer","example":4},"evolution":{"type":"object","additionalProperties":{"type":"object","properties":{"retake":{"type":"object","properties":{"count":{"type":"integer","example":80},"frames":{"type":"integer","example":7900},"drawings":{"type":"integer","example":8000}}},"done":{"type":"object","properties":{"count":{"type":"integer","example":117},"frames":{"type":"integer","example":3900},"drawings":{"type":"integer","example":8000}}}}}},"done":{"type":"object","properties":{"count":{"type":"integer","example":197},"frames":{"type":"integer","example":16090},"drawings":{"type":"integer","example":16090}}},"retake":{"type":"object","properties":{"count":{"type":"integer","example":0},"frames":{"type":"integer","example":0},"drawings":{"type":"integer","example":0}}},"other":{"type":"object","properties":{"count":{"type":"integer","example":5},"frames":{"type":"integer","example":185},"drawings":{"type":"integer","example":185}}}}},"example":{"episodeId1":{"max_retake_count":4,"evolution":{"1":{"retake":{"count":80,"frames":7900,"drawings":8000},"done":{"count":117,"frames":3900,"drawings":8000}}},"done":{"count":197,"frames":16090,"drawings":16090},"retake":{"count":0,"frames":0,"drawings":0},"other":{"count":5,"frames":185,"drawings":185}},"all":{"all":{"max_retake_count":4,"done":{"count":500,"frames":50000,"drawings":50000},"retake":{"count":100,"frames":10000,"drawings":10000},"other":{"count":10,"frames":1000,"drawings":1000}}}}}}}},"403":{"description":"You do not have access to this project, or you are a client"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/retake-stats\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes/retake-stats\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/quotas/{task_type_id}":{"get":{"summary":"Get the quotas of a project for a task type","description":"Get the quota statistics of each person of a project for a task type. A quota counts the shots that a person ended. The response also has a total. Clients cannot use this route.","responses":{"200":{"description":"Quotas statistics for shots, keyed by person id, with a total entry. The total counts each task once. In raw modes, and in weighted modes for a task without time spent, the entry of each assignee counts the whole task, so the entries of a task with several assignees add up to more than the total. In weighted modes, a task with time spent is shared out between the people who logged time on it.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"number","description":"Shots counted. In weighted modes a shot is split over the days it was worked on, so counts are fractions rounded to 2 decimals.","example":42},"frames":{"type":"integer","example":1200}}}}}}},"400":{"description":"count_mode is not valid"},"403":{"description":"You do not have access to this project, or you are a client"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task type"},{"in":"query","name":"count_mode","required":false,"example":"weighted","schema":{"type":"string","enum":["weighted","weigtheddone","feedback","done"],"default":"weighted"},"description":"How to count the shots: weighted, weighteddone, feedback or done. The default value is weighted. The weighted modes give each shot the part of its work time that is in the period. The other modes count each shot on its end date. The feedback modes end a shot at its first feedback. The done modes end a shot when it is done."},{"in":"query","name":"studio_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the persons of this studio"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/a24a6ea4-ce75-4665-a070-57453082c25?count_mode=weighted&studio_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"count_mode\": \"weighted\",\n    \"studio_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/quotas/persons/{person_id}":{"get":{"summary":"Get the quotas of a person in a project","description":"Get the quota statistics of a person in a project. A quota counts the shots that the person ended. A manager or a supervisor of the project can read the quotas of all the persons. Other users can read their own quotas only. Clients cannot use this route.","responses":{"200":{"description":"The quota statistics","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"number","description":"Shots counted. In weighted modes a shot is split over the days it was worked on, so counts are fractions rounded to 2 decimals.","example":15},"frames":{"type":"integer","example":360}}}}}}},"400":{"description":"count_mode is not valid"},"403":{"description":"You cannot read the quotas of this person, or you are a client"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project"},{"in":"path","name":"person_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person"},{"in":"query","name":"count_mode","required":false,"example":"weighted","schema":{"type":"string","enum":["weighted","weigtheddone","feedback","done"],"default":"weighted"},"description":"How to count the shots: weighted, weighteddone, feedback or done. The default value is weighted. The weighted modes give each shot the part of its work time that is in the period. The other modes count each shot on its end date. The feedback modes end a shot at its first feedback. The done modes end a shot when it is done."},{"in":"query","name":"studio_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the persons of this studio"}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/persons/a24a6ea4-ce75-4665-a070-57453082c25?count_mode=weighted&studio_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/quotas/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"count_mode\": \"weighted\",\n    \"studio_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/set-shot-nb-frames":{"post":{"summary":"Set the frames of the shots from the previews","description":"Set the number of frames of each shot of a project from the last preview of the shot for a task type. Give episode_id to change only the shots of one episode. You must be a manager of the project.","responses":{"200":{"description":"The updated shots","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","example":12}}}}}},"400":{"description":"An identifier is not valid"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"description":"Get only the entities of this project","schema":{"type":"string","format":"uuid"}},{"in":"path","name":"task_type_id","required":true,"description":"Unique identifier of the task type","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"episode_id","required":false,"description":"Get only the entities of this episode","schema":{"type":"string","format":"uuid"}}],"tags":["Shots"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/{project_id}/task-types/{task_type_id}/set-shot-nb-frames\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"shots\": [\n    {\n      \"shot_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n      \"nb_frames\": 24\n    }\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/{project_id}/task-types/{task_type_id}/set-shot-nb-frames\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"shots\": [\n        {\n            \"shot_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n            \"nb_frames\": 24\n        }\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/open-tasks":{"get":{"summary":"Get the open tasks","description":"Get the open tasks that match the filters, page by page, with statistics. The tasks are the tasks of the open projects of your teams. An administrator gets the tasks of all the open projects. The route skips the concept tasks if you do not give task_type_id. Clients and vendors cannot use this route.","responses":{"200":{"description":"A page of tasks with the statistics","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"},"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"}}}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a client or a vendor on the given project, or globally when you give no project; or you are not in the team of the given project"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the tasks of this project"},{"in":"query","name":"task_status_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the tasks with this task status"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the tasks of this task type"},{"in":"query","name":"person_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the tasks of these assignees. Give a comma-separated list, or unassigned for the tasks without assignee."},{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get only the tasks that start on this date or after"},{"in":"query","name":"due_date","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get only the tasks that end on this date or before"},{"in":"query","name":"priority","required":false,"schema":{"type":"integer"},"example":3,"description":"Get only the tasks with this priority"},{"in":"query","name":"page","required":false,"schema":{"type":"integer","default":1},"example":1,"description":"Page to get"},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100},"example":100,"description":"Number of tasks in a page. The default value is 100."},{"in":"query","name":"studio_id","required":false,"description":"Get only the tasks of the assignees of this studio","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"department_id","required":false,"description":"Get only the tasks of the assignees of this department","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"group_by","required":false,"description":"Group the statistics on this field","schema":{"type":"string"}}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/open-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25&task_status_id=a24a6ea4-ce75-4665-a070-57453082c25&task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&person_id=a24a6ea4-ce75-4665-a070-57453082c25&start_date=2022-07-12&due_date=2022-07-12&priority=3&page=1&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/open-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"start_date\": \"2022-07-12\",\n    \"due_date\": \"2022-07-12\",\n    \"priority\": 3,\n    \"page\": 1,\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/open-tasks/stats":{"get":{"summary":"Get the statistics of the open tasks","description":"Get the number of tasks and the totals for each task type and each task status of each open project. An administrator gets all the open projects. Other users get the open projects of their teams.","responses":{"200":{"description":"A map of project identifiers to statistics","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","properties":{"total":{"type":"integer"},"done":{"type":"integer"},"estimation":{"type":"integer"},"duration":{"type":"integer"}}}}}}},"400":{"description":"Bad request"}},"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/open-tasks/stats\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/open-tasks/stats\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/open-tasks/burndown":{"get":{"summary":"Get the burndown of the open tasks","description":"Get the burndown values of the open tasks that match the filters. The response gives the total duration and estimation, the first start date, the last due date and the values for each day. The tasks are the tasks of the open projects of your teams. An administrator gets the tasks of all the open projects. The route skips the concept tasks if you do not give task_type_id. Clients and vendors cannot use this route.","responses":{"200":{"description":"The burndown values","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","description":"Total number of tasks"},"total_estimation":{"type":"number","description":"Total estimation of tasks in minutes"},"start_date":{"type":"string","format":"date","description":"First task start date"},"end_date":{"type":"string","format":"date","description":"Last task due date"},"done_by_day":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"done":{"type":"integer"},"done_estimation":{"type":"number"}}}}}}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You are a client or a vendor on the given project, or globally when you give no project; or you are not in the team of the given project"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this project"},{"in":"query","name":"task_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks with this task status"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this task type"},{"in":"query","name":"person_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of these assignees. Give a comma-separated list, or unassigned for the tasks without assignee."},{"in":"query","name":"studio_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of the assignees of this studio"},{"in":"query","name":"department_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of the assignees of this department"},{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"description":"Get only the tasks that start on this date or after"},{"in":"query","name":"due_date","required":false,"schema":{"type":"string","format":"date"},"description":"Get only the tasks that end on this date or before"},{"in":"query","name":"priority","required":false,"schema":{"type":"integer"},"description":"Get only the tasks with this priority"}],"tags":["Tasks"]}},"/data/tasks/{task_id}/comments":{"get":{"summary":"Get the comments of a task","description":"Get the comments of a task, the newest first. Managers and supervisors get all the comments. Other users, except clients, do not get the comments that clients wrote. A client gets the comments for clients and the comments of clients. If the project isolates the clients, a client gets only their own comments of clients. A client also gets the other comments that have a preview, without their text, attachments, checklist and replies.","responses":{"200":{"description":"The list of comments","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"This task is progressing well"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"403":{"description":"You do not have access to this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/comments/{comment_id}":{"get":{"summary":"Get a comment of a task","description":"Get a comment of a task. Managers and supervisors of the project can read all the comments. Other users, except clients, cannot read the comments that clients wrote. A client can read the comments for clients and the comments of clients. If the project isolates the clients, a client reads only the comments for clients and their own comments.","responses":{"200":{"description":"The comment","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"Review completed successfully"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"403":{"description":"You cannot read this comment"},"404":{"description":"The comment does not exist, or it is not on this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"comment_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a comment of a task","description":"Delete a comment of a task. A manager of the project can delete all the comments. Other users can delete their own comments only.","responses":{"204":{"description":"The comment is deleted"},"403":{"description":"You cannot delete this comment"},"404":{"description":"The comment does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"comment_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/previews":{"get":{"summary":"Get the previews of a task","description":"Get the preview files of a task. A client does not get the rejected previews.","responses":{"200":{"description":"The list of preview files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":1},"comment_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}}},"403":{"description":"You do not have access to this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/previews\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/previews\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/tasks/{task_id}/full":{"get":{"summary":"Get a task with all its data","description":"Get a task with the details of its assignees, its task type, its task status, its entity and its project. A manager gets all the fields of the assignees and of the assigner. Other users get the minimal fields. A client gets a reduced task, without the assignees and the assigner.","responses":{"200":{"description":"The task","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"f24a6ea4-ce75-4665-a070-57453082c250"},"first_name":{"type":"string","example":"John"},"last_name":{"type":"string","example":"Doe"}}}},"task_type":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Animation"}}},"task_status":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"In Progress"}}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/full\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/full\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/tasks":{"get":{"summary":"Get the open tasks of a person","description":"Get the tasks of a person that are not done. An administrator gets the tasks of all the open projects. Other users get only the tasks in the open projects of their own teams. A vendor cannot read the tasks of other persons, and gets an empty list for their own tasks. A client gets an empty list. You cannot read the tasks of a bot.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"403":{"description":"You cannot read the tasks of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/related-tasks/{task_type_id}":{"get":{"summary":"Get the tasks of a type on the entities of a person","description":"Get the tasks of a task type on the entities where a person has assigned tasks. An administrator gets the tasks of all the open projects. Other users get only the tasks in the open projects of their own teams. Clients and vendors get an empty list. A vendor can ask only for their own tasks. You cannot read the tasks of a bot.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Asset Modeling"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"403":{"description":"You cannot read the tasks of this person, or the person is a bot"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/related-tasks/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/related-tasks/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/{person_id}/done-tasks":{"get":{"summary":"Get the done tasks of a person","description":"Get the done tasks of a person. An administrator gets the tasks of all the open projects. Other users get only the tasks in the open projects of their own teams. A vendor cannot read the tasks of other persons, and gets an empty list for their own tasks. A client gets an empty list. You cannot read the tasks of a bot.","responses":{"200":{"description":"The list of done tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"EP01 Layout"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"403":{"description":"You cannot read the tasks of this person, or the person is a bot"},"404":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/done-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/a24a6ea4-ce75-4665-a070-57453082c25/done-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/entities/{entity_id}/task-types/{task_type_id}/tasks":{"get":{"summary":"Get the tasks of an entity for a task type","description":"Get the tasks of an entity that have a task type.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"403":{"description":"You do not have access to this project or to this entity"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the entity"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/comments":{"get":{"summary":"Get the comments of a project","description":"Get the comments of the tasks of a project, page by page. Synchronization tools use this route. Clients and vendors cannot use this route.","responses":{"200":{"description":"Without page, the list of comments. With page, an object with data, total, nb_pages, limit, offset and page.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"object_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"text":{"type":"string","example":"This task looks good"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"limit","example":100,"schema":{"type":"integer","default":100},"description":"Number of rows in a page"},{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"description":"Page to get. Without page, the route returns all the comments in a list and ignores limit."}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/comments?limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/comments\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/notifications":{"get":{"summary":"Get the notifications of a project","description":"Get the notifications of the tasks of a project. Synchronization tools use this route. You must be an administrator.","responses":{"200":{"description":"Without page, the list of notifications. With page, an object with data, total, nb_pages, limit, offset and page.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"notification_type":{"type":"string","example":"assignment"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}},"limit":{"type":"integer","example":100},"page":{"type":"integer","example":1},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"offset":{"type":"integer"}}}}}},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"description":"Page to get. Without page, the route returns the full list."}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/notifications\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/notifications\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/preview-files":{"get":{"summary":"Get the preview files of a project","description":"Get the preview files of the tasks of a project. Synchronization tools use this route. You must be an administrator.","responses":{"200":{"description":"Without page, the list of preview files. With page, an object with data, total, nb_pages, limit, offset and page.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":1},"person_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}},"limit":{"type":"integer","example":100},"page":{"type":"integer","example":1},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"offset":{"type":"integer"}}}}}},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"description":"Page to get. Without page, the route returns the full list."}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/subscriptions":{"get":{"summary":"Get the subscriptions of a project","description":"Get the subscriptions of the tasks of a project. Synchronization tools use this route. You must be an administrator.","responses":{"200":{"description":"The list of subscriptions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}}},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/subscriptions\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/subscriptions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/tasks":{"get":{"summary":"Get the tasks of a project","description":"Get the tasks of a project, page by page. Synchronization tools use this route. A vendor gets only the tasks assigned to them. A client gets reduced tasks.","responses":{"200":{"description":"Without page, the list of tasks. With page, an object with data, total, nb_pages, limit, offset and page.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}},"limit":{"type":"integer","example":100},"page":{"type":"integer","example":1},"total":{"type":"integer"},"nb_pages":{"type":"integer"},"offset":{"type":"integer"}}}}}},"304":{"description":"Not modified. The response carries an ETag. Send it in If-None-Match to get a 304 when nothing changed."},"403":{"description":"You do not have access to this project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"query","name":"page","required":false,"example":1,"schema":{"type":"integer"},"description":"Page to get"},{"in":"query","name":"task_type_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this task type"},{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this episode"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/tasks?page=1&task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&episode_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"page\": 1,\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"episode_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/persons/task-dates":{"get":{"summary":"Get the task dates of the persons","description":"For each active person, get the first start date and the last end date of their tasks. The schedule of the team uses it. An administrator gets all the projects. A manager or a supervisor gets the projects of their teams. The other open projects come as busy periods, without the project or the task. Without project_id, the route uses your global role. You must be a supervisor, a manager or an administrator in the studio. With project_id, the route uses your role on this project.","responses":{"200":{"description":"The first and the last date for each person","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"min_date":{"type":"string","description":"First task start date for this person within the requested scope","example":"2024-01-15 00:00:00"},"max_date":{"type":"string","description":"Last task due date for this person within the requested scope","example":"2024-03-21 00:00:00"},"busy_periods":{"type":"array","description":"Anonymous, merged date intervals covering the person's tasks in open productions outside the caller's scope. No production or task detail is exposed.","items":{"type":"object","properties":{"start_date":{"type":"string","example":"2024-01-15 00:00:00"},"end_date":{"type":"string","example":"2024-03-21 00:00:00"}}}}}}}}}},"400":{"description":"project_id is not valid"},"403":{"description":"You do not have the supervisor role, or you are not in the team of this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the tasks of this project"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/persons/task-dates?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/persons/task-dates\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/delete-tasks":{"delete":{"summary":"Delete all the tasks of a task type","description":"Delete all the tasks of a task type in a project, with their comments and previews. Use it when tasks were created by mistake. You must be an administrator.","responses":{"204":{"description":"The tasks are deleted"},"403":{"description":"You are not an administrator"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/delete-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/delete-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/delete-tasks":{"post":{"summary":"Delete tasks","description":"Delete the tasks of the list. Send a list of task identifiers in the body. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of task identifiers to delete"}}}},"responses":{"200":{"description":"The identifiers you sent. The tasks of another project are not deleted but stay in the list.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250"]}}}},"400":{"description":"The body is not a list of valid identifiers"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/delete-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/delete-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/assign":{"put":{"summary":"Assign a task to a person","description":"Add a person to the assignees of a task. The route also adds the person to the team of the project. An administrator or a manager of the project can assign all the tasks. A supervisor without department can assign all the tasks. A supervisor with departments can assign the tasks of their departments, to a person of one of their departments. Other users can assign themselves to the tasks of their departments. You cannot assign a bot, except when the project enables bot collaboration.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["person_id"],"properties":{"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"200":{"description":"The task","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"400":{"description":"The person does not exist"},"403":{"description":"You cannot assign this task, or the person is a bot"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/assign\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/assign\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/clear-assignation":{"put":{"summary":"Remove the assignees of tasks","description":"Remove the assignees of the tasks of the list. Give person_id to remove only this person. The tasks that you cannot change, and the unknown tasks, are skipped. An administrator or a manager of the project can change all the tasks. A supervisor can change the tasks of their departments. An assignee can remove themselves, with their own person_id.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250","b24a6ea4-ce75-4665-a070-57453082c250"]},"person_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"responses":{"200":{"description":"The identifiers of the changed tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250"]}}}},"400":{"description":"The body is not valid"}},"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/tasks/clear-assignation\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_ids\": [\n    \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"b24a6ea4-ce75-4665-a070-57453082c25\"\n  ],\n  \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/clear-assignation\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_ids\": [\n        \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"b24a6ea4-ce75-4665-a070-57453082c25\"\n    ],\n    \"person_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/set-priority":{"put":{"summary":"Set the priority of tasks","description":"Set the priority of each task of the list. The tasks that you cannot change are skipped. A manager can change the tasks of the project. A supervisor can change the tasks of their departments.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids","priority"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250","b24a6ea4-ce75-4665-a070-57453082c250"]},"priority":{"type":"integer","example":2}}}}}},"responses":{"200":{"description":"The updated tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The body is not valid"}},"tags":["Tasks"]}},"/actions/persons/{person_id}/assign":{"put":{"summary":"Assign tasks to a person","description":"Add a person to the assignees of each task of the list. The unknown task identifiers are skipped. The tasks that you cannot assign are skipped. If a task was assigned, the route also adds the person to the team of its project. An administrator or a manager of the project can assign all the tasks. A supervisor without department can assign all the tasks. A supervisor with departments can assign the tasks of their departments, to a person of one of their departments. Other users can assign themselves to the tasks of their departments. You cannot assign a bot, except when the project enables bot collaboration.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250","b24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"responses":{"200":{"description":"The updated tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"example":["f24a6ea4-ce75-4665-a070-57453082c250"]}}}}}}},"400":{"description":"The person does not exist"}},"parameters":[{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/assign\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"task_ids\": [\n    \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"b24a6ea4-ce75-4665-a070-57453082c25\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/persons/a24a6ea4-ce75-4665-a070-57453082c25/assign\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"task_ids\": [\n        \"a24a6ea4-ce75-4665-a070-57453082c25\",\n        \"b24a6ea4-ce75-4665-a070-57453082c25\"\n    ]\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/time-spents/{date}":{"get":{"summary":"Get the time spent on a task for a date","description":"Get the time spent entries of a task for a date, for all the persons. Clients cannot use this route.","responses":{"200":{"description":"An object. Each key is a person identifier, with the list of their time spent entries. The key total gives the sum of the durations.","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"number","description":"Sum of the durations"}},"additionalProperties":{"type":"array","description":"Time spent entries of the person","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2022-07-12"},"duration":{"type":"number","example":120},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You are a client, or you do not have access to this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Date in the YYYY-MM-DD format"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/time-spents":{"get":{"summary":"Get the time spent on a task","description":"Get all the time spent entries of a task, for all the persons. Clients cannot use this route.","responses":{"200":{"description":"An object. Each key is a person identifier, with the list of their time spent entries. The key total gives the sum of the durations.","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"number","description":"Sum of the durations"}},"additionalProperties":{"type":"array","description":"Time spent entries of the person","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2022-07-12"},"duration":{"type":"number","example":120},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}}}},"403":{"description":"You are a client, or you do not have access to this task"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/time-spents/{date}/persons/{person_id}":{"post":{"summary":"Set a time spent","description":"Set the time spent of a person on a task for a date. The duration replaces the current duration. An administrator can change the time of all the persons. For other users, the person must be an assignee of the task. The person can change their own time. A manager of the project can change the time of the assignees. You cannot change the time of a bot, except when the project enables bot collaboration.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"duration":{"type":"number","example":120}}}}}},"responses":{"201":{"description":"The time spent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2022-07-12"},"duration":{"type":"number","example":120},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The date or the duration is not valid"},"403":{"description":"You cannot change the time of this person, or the person is a bot"},"404":{"description":"The task or the person does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Date in the YYYY-MM-DD format"},{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12/persons/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"duration\": 120\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"duration\": 120\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a time spent","description":"Delete the time spent of a person on a task for a date. An administrator can change the time of all the persons. For other users, the person must be an assignee of the task. The person can change their own time. A manager of the project can change the time of the assignees. You cannot change the time of a bot.","responses":{"200":{"description":"The deleted time spent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2022-07-12"},"duration":{"type":"number","example":0},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You cannot change the time of this person, or the person is a bot"},"404":{"description":"The task, the person or the time spent does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Date in the YYYY-MM-DD format"},{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12/persons/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/time-spents/{date}/persons/{person_id}/add":{"post":{"summary":"Add time to a time spent","description":"Add a duration to the time spent of a person on a task for a date. If the time spent does not exist, the route creates it. An administrator can add time for all the persons. For other users, the person must be an assignee of the task. The person can add time for themselves. A manager of the project can add time for the assignees. You cannot add time for a bot, except when the project enables bot collaboration.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"duration":{"type":"number","example":30}}}}}},"responses":{"201":{"description":"The updated time spent","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"date":{"type":"string","format":"date","example":"2022-07-12"},"duration":{"type":"number","example":150},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The date or the duration is not valid"},"403":{"description":"The person is not an assignee of the task, you cannot add time for this person, or the person is a bot"},"404":{"description":"The task or the person does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Date in the YYYY-MM-DD format"},{"in":"path","name":"person_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the person"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12/persons/a24a6ea4-ce75-4665-a070-57453082c25/add\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"duration\": 30\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2022-07-12/persons/a24a6ea4-ce75-4665-a070-57453082c25/add\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"duration\": 30\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/comments/{comment_id}/add-preview":{"post":{"summary":"Add a preview to a comment","description":"Create a preview file for a comment of a task. Upload the file of the preview after. If you do not give the revision, the route uses the last revision plus 1. Administrators and the managers of the project can use this route. Other users must be assignees of the task, supervisors of its department, or creators of its entity. A client of the project cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","description":"Revision number for the preview","example":1}}}}}},"responses":{"201":{"description":"The new preview file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":3},"person_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"}}}}}},"400":{"description":"The body is not valid, the revision already exists on this task, or the project allows one preview per revision"},"403":{"description":"You cannot do actions on this task"},"404":{"description":"The task or the comment does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"comment_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/add-preview\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"revision\": 1\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/add-preview\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"revision\": 1\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/comments/{comment_id}/preview-files/{preview_file_id}":{"post":{"summary":"Upload an extra preview of a comment","description":"Create another preview entry on a comment, in the same revision as the preview preview_file_id. A comment can have several previews in the same revision. The route creates the metadata only. Upload the file after, with the preview file upload route. Administrators and the managers of the project can use this route. Other users must be assignees of the task, supervisors of its department, or creators of its entity. A client of the project cannot use this route.","responses":{"201":{"description":"The preview file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"comment_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"task_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"revision":{"type":"integer","example":2},"person_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The project allows one preview per revision, or the revision already exists"},"403":{"description":"You cannot do actions on this task"},"404":{"description":"The task, the comment or the preview file does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"comment_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview file"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a preview of a comment","description":"Delete a preview of a comment of a task. The preview must be on the comment, and the comment must be on the task. Administrators and the managers of the project can use this route. Other users must be assignees of the task, supervisors of its department, or creators of its entity. You must also be able to read the comment. A client of the project cannot use this route. Use force=true to delete the files from the storage now. Else, the purge deletes them later. Only an administrator or a manager of the project can use force.","responses":{"204":{"description":"The preview is deleted"},"400":{"description":"An identifier is not valid"},"403":{"description":"You cannot do actions on this task, or you use force and you are not a manager"},"404":{"description":"The task, the comment or the preview does not exist, or they are not linked"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"},{"in":"path","name":"comment_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the comment"},{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the preview file"},{"in":"query","name":"force","required":false,"schema":{"type":"boolean","default":false},"description":"Delete the files from the storage now"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/preview-files/a24a6ea4-ce75-4665-a070-57453082c25?force=\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": \"\"\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/shots/create-tasks":{"post":{"summary":"Create tasks for shots","description":"Create a task of the task type for each shot of the list. If the body is empty, the route uses the shots of the project that match the query parameters, for example sequence_id. The identifiers of shots of another project are skipped. A task that exists is skipped. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of shot IDs to create tasks for"},"example":["b24a6ea4-ce75-4665-a070-57453082c250"]}}},"responses":{"201":{"description":"The new tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010 Animation"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"The body is not a list of valid identifiers"},"404":{"description":"The project or the task type does not exist"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/shots/create-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  \"\"\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/shots/create-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    \"\"\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/assets/create-tasks":{"post":{"summary":"Create tasks for assets","description":"Create a task of the task type for each asset of the list. If the body is empty, the route uses the assets of the project that match the query parameters, for example asset_type_id. The identifiers of assets of another project are skipped. A task that exists is skipped, as well as an asset whose asset type workflow excludes the task type. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of asset IDs to create tasks for"},"example":["b24a6ea4-ce75-4665-a070-57453082c250"]}}},"responses":{"201":{"description":"The new tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Asset Modeling"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"The body is not a list of valid identifiers"},"404":{"description":"The project or the task type does not exist"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/create-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  \"\"\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/create-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    \"\"\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/edits/create-tasks":{"post":{"summary":"Create tasks for edits","description":"Create a task of the task type for each edit of the list. If the body is empty, the route uses the edits of the project that match the query parameters. The identifiers of edits of another project are skipped. A task that exists is skipped. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of edit IDs to create tasks for"},"example":["b24a6ea4-ce75-4665-a070-57453082c250"]}}},"responses":{"201":{"description":"The new tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Edit Compositing"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"The body is not a list of valid identifiers"},"404":{"description":"The project or the task type does not exist"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/edits/create-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  \"\"\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/edits/create-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    \"\"\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/concepts/create-tasks":{"post":{"summary":"Create tasks for concepts","description":"Create a task of the task type for each concept of the list. If the body is empty, the route uses the concepts of the project that match the query parameters. The identifiers of concepts of another project are skipped. A task that exists is skipped. Clients and vendors cannot use this route.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of concept IDs to create tasks for"},"example":["b24a6ea4-ce75-4665-a070-57453082c250"]}}},"responses":{"201":{"description":"The new tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Concept Modeling"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"The body is not a list of valid identifiers"},"404":{"description":"The project or the task type does not exist"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/concepts/create-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  \"\"\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/concepts/create-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    \"\"\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/projects/{project_id}/task-types/{task_type_id}/create-tasks/{entity_type}":{"post":{"summary":"Create tasks for entities of a type","description":"Create a task of the task type for each entity of the list. If the body is empty, the route uses all the entities of this type in the project, or of the episode episode_id. The entity type name is not case sensitive. A task that exists is skipped. For an asset type, an asset whose workflow does not have the task type is skipped. You must be a manager of the project.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of entity IDs to create tasks for"},"example":["b24a6ea4-ce75-4665-a070-57453082c250"]}}},"responses":{"201":{"description":"The new tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"Entity Task Name"},"task_type_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"task_status_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"project_id":{"type":"string","format":"uuid","example":"e24a6ea4-ce75-4665-a070-57453082c250"}}}}}}},"400":{"description":"The body is not a list of valid identifiers"},"404":{"description":"The project, the task type or the entity type does not exist"},"403":{"description":"You are not a manager of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project"},{"in":"path","name":"entity_type","required":true,"schema":{"type":"string"},"example":"Asset","description":"Name of the entity type, for example Asset or Sequence"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task type"},{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Use only the entities of this episode, when the body is empty"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/create-tasks/Asset/\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '[\n  \"\"\n]'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/create-tasks/Asset/\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = [\n    \"\"\n]\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/set-main-preview":{"put":{"summary":"Use the last preview of tasks as the entity pictures","description":"For each task of the list, use its last preview as the picture of its entity. The tasks without preview are skipped. If a task does not exist or if you cannot change it, the route stops with an error. The entities changed before the error stay changed. Clients cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}}}}},"responses":{"200":{"description":"The updated entities","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project, or you are a client"},"404":{"description":"A task does not exist"}},"tags":["Tasks"]}},"/actions/tasks/{task_id}/set-main-preview":{"put":{"summary":"Use the last preview of a task as the entity picture","description":"Use the last preview of a task as the picture of its entity. Clients cannot use this route.","responses":{"200":{"description":"The entity","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","example":"SH010"},"project_id":{"type":"string","format":"uuid","example":"b24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","example":"c24a6ea4-ce75-4665-a070-57453082c250"},"entity_type_id":{"type":"string","format":"uuid","example":"d24a6ea4-ce75-4665-a070-57453082c250"},"created_at":{"type":"string","format":"date-time","example":"2024-01-15T10:30:00Z"},"updated_at":{"type":"string","format":"date-time","example":"2024-01-15T11:00:00Z"}}}}}},"400":{"description":"The task has no preview"},"403":{"description":"You do not have access to this project or to this entity, or you are a client"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the task"}],"tags":["Tasks"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/set-main-preview\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/set-main-preview\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/playlists/preview-files/running":{"get":{"summary":"Get the previews that are processing","description":"Get the preview files of the open projects that have the processing or broken status. To get the next page, give the identifier of the last preview in cursor_preview_file_id. You must be an administrator.","responses":{"200":{"description":"The list of preview files","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"status":{"type":"string","description":"Preview file status","example":"processing"}}}}}}},"400":{"description":"The cursor is not a valid identifier"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"query","name":"cursor_preview_file_id","required":false,"description":"Get the previews that come after this preview","example":"a24a6ea4-ce75-4665-a070-57453082c250","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"limit","required":false,"description":"Maximum number of previews","example":100,"schema":{"type":"integer"}}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/playlists/preview-files/running?cursor_preview_file_id=a24a6ea4-ce75-4665-a070-57453082c25&limit=100\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/playlists/preview-files/running\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"cursor_preview_file_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"limit\": 100\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/preview-files/{instance_id}":{"post":{"summary":"Upload the file of a preview","description":"Upload the file of a preview. Send the file in a multipart form. For a picture, the route makes a square thumbnail, a rectangle thumbnail and a preview picture. For a movie, the route normalizes the movie and makes the thumbnails. Use normalize=false to keep the movie as it is. You cannot upload a file again for a preview that already has a file. You must be able to do actions on the task. A client of the project cannot use this route.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Preview file to upload","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The preview file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"extension":{"type":"string","description":"File extension","example":"png"},"file_size":{"type":"integer","description":"File size in bytes","example":1024000}}}}}},"400":{"description":"The file is missing, its format is not valid, or the preview already has a file"},"403":{"description":"You cannot do actions on this task"},"404":{"description":"The preview file does not exist"},"500":{"description":"The processing of the movie failed"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"normalize","required":false,"description":"Normalize the movie","schema":{"type":"boolean","default":true}},{"in":"query","name":"no_job","required":false,"description":"Process the file in the request instead of the job queue","schema":{"type":"boolean","default":false}}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/preview-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/{task_id}/batch-comment":{"post":{"summary":"Comment a task several times","description":"Add several comments to a task in one request. Send a multipart form. Each entry of comments is a JSON object with task_status_id and text, and optional checklist, links, person_id and created_at. You can also send a JSON body with a comments list. Each comment sets the status of its task. To attach files to the comment at index i, name the form fields attachment_file-i for attachments and preview_file-i for previews. Only a manager can set person_id and created_at. You must be able to do actions on each task.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["comments"],"properties":{"comments":{"type":"string","description":"JSON string containing array of comments","example":"[{\"text\": \"Good work\", \"task_status_id\": \"uuid\"}]"}}}},"application/json":{"schema":{"type":"object","required":["comments"],"properties":{"comments":{"type":"array","description":"List of comments","items":{"type":"object"}}}}}}},"responses":{"201":{"description":"The new comments","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You cannot do actions on this task, or you cannot use a task status"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Task unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/batch-comment\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/batch-comment\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/tasks/batch-comment":{"post":{"summary":"Comment several tasks","description":"Add comments to several tasks in one request. Send a multipart form. Each entry of comments is a JSON object with task_id, task_status_id and text, and optional checklist, links, person_id and created_at. You can also send a JSON body with a comments list. Each comment sets the status of its task. To attach files to the comment at index i, name the form fields attachment_file-i and preview_file-i. Only a manager can set person_id and created_at. You must be able to do actions on each task.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["comments"],"properties":{"comments":{"type":"string","description":"JSON string containing array of comments","example":"[{\"task_id\": \"uuid\", \"text\": \"Good work\", \"task_status_id\": \"uuid\"}]"}}}},"application/json":{"schema":{"type":"object","required":["comments"],"properties":{"comments":{"type":"array","description":"List of comments","items":{"type":"object"}}}}}}},"responses":{"201":{"description":"The new comments","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You cannot do actions on a task, or you cannot use a task status"},"404":{"description":"A task does not exist"}},"tags":["Comments"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/tasks/batch-comment\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/tasks/batch-comment\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/movies/originals/preview-files/{instance_id}.mp4":{"get":{"summary":"Get the movie of a preview","description":"Get the full quality movie of a preview. If this movie does not exist, the route sends the low definition movie. Then it sends the uploaded source. You must have access to the task.","responses":{"200":{"description":"The MP4 movie","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"206":{"description":"A part of the movie, for a Range request","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/movies/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.mp4\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/movies/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.mp4\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/movies/originals/preview-files/{instance_id}/download":{"get":{"summary":"Download the movie of a preview","description":"Download the movie of a preview as an attachment. You must have access to the task.","responses":{"200":{"description":"The MP4 movie","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"206":{"description":"A part of the movie, for a Range request","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/movies/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/download\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/movies/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/download\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/movies/low/preview-files/{instance_id}.mp4":{"get":{"summary":"Get the low definition movie of a preview","description":"Get the low definition movie of a preview. If this movie does not exist, the route sends the full quality movie. Then it sends the uploaded source. You must have access to the task.","responses":{"200":{"description":"The MP4 movie","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"206":{"description":"A part of the movie, for a Range request","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/movies/low/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.mp4\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/movies/low/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.mp4\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/movies/source/preview-files/{instance_id}.mp4":{"get":{"summary":"Get the source movie of a preview","description":"Get the movie as it was uploaded, before the normalization. Synchronization tools use this route. You must have access to the task.","responses":{"200":{"description":"The MP4 movie","content":{"video/mp4":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview does not exist, or the source movie was not kept"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"]}},"/pictures/thumbnails/preview-files/{instance_id}.png":{"get":{"summary":"Get a picture of a preview","description":"Get a picture of a preview file. It can be the thumbnail, the square thumbnail, the original picture or the preview picture. For the thumbnail, the square thumbnail and the original picture, anybody who is logged in can get the main preview of a shared entity, except vendors. For the preview picture, and for the other previews, you must have access to the task. A vendor must have a task on the entity.","responses":{"200":{"description":"The PNG picture","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/attachment-files/{attachment_file_id}.png":{"get":{"summary":"Get the thumbnail of an attachment","description":"Get the thumbnail of a file attached to a comment or to a chat message. You must have access to the task or to the chat. Clients cannot get the files of a chat. A vendor must have a task on the entity.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to the task of the comment or to the chat, you are a client and the file is in a chat, or the file is linked to nothing"},"404":{"description":"The attachment or its thumbnail does not exist"}},"parameters":[{"in":"path","name":"attachment_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Attachment file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/attachment-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails-square/preview-files/{instance_id}.png":{"get":{"summary":"Get a picture of a preview","description":"Get a picture of a preview file. It can be the thumbnail, the square thumbnail, the original picture or the preview picture. For the thumbnail, the square thumbnail and the original picture, anybody who is logged in can get the main preview of a shared entity, except vendors. For the preview picture, and for the other previews, you must have access to the task. A vendor must have a task on the entity.","responses":{"200":{"description":"The PNG picture","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails-square/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails-square/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/originals/preview-files/{instance_id}.png":{"get":{"summary":"Get a picture of a preview","description":"Get a picture of a preview file. It can be the thumbnail, the square thumbnail, the original picture or the preview picture. For the thumbnail, the square thumbnail and the original picture, anybody who is logged in can get the main preview of a shared entity, except vendors. For the preview picture, and for the other previews, you must have access to the task. A vendor must have a task on the entity.","responses":{"200":{"description":"The PNG picture","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/originals/preview-files/{instance_id}.{extension}":{"get":{"summary":"Get the original file of a preview","description":"Get the original file of a preview. Give the extension of the preview. A picture, a PDF or a file extension of the allowed list is accepted. Movie extensions are not accepted on this route. You must have access to the task.","responses":{"200":{"description":"The file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"400":{"description":"The extension is not in the list of allowed extensions"},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file does not exist, or there is no file with this extension"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"extension","required":true,"schema":{"type":"string"},"description":"Extension of the file, for example pdf","example":"png"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/originals/preview-files/{instance_id}/download":{"get":{"summary":"Download the original file of a preview","description":"Download the original file of a preview as an attachment. You must have access to the task.","responses":{"200":{"description":"The file","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/download\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/originals/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/download\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/previews/preview-files/{instance_id}.png":{"get":{"summary":"Get a picture of a preview","description":"Get a picture of a preview file. It can be the thumbnail, the square thumbnail, the original picture or the preview picture. For the thumbnail, the square thumbnail and the original picture, anybody who is logged in can get the main preview of a shared entity, except vendors. For the preview picture, and for the other previews, you must have access to the task. A vendor must have a task on the entity.","responses":{"200":{"description":"The PNG picture","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/previews/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/previews/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/movies/tiles/preview-files/{instance_id}.png":{"get":{"summary":"Get the tile sheet of a movie preview","description":"Get the tile sheet of a movie preview. If a ready movie has no tile sheet, the route starts to make it for the next request. You must have access to the task.","responses":{"200":{"description":"The PNG tile sheet","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"202":{"description":"The preview is still processing. The body has the status and the Retry-After header gives the delay. Only for a client that accepts application/json. Other clients get a 404.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"processing"},"preview_file_id":{"type":"string","format":"uuid","example":"a24a6ea4-ce75-4665-a070-57453082c250"}}}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The preview has no tile sheet"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/movies/tiles/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/movies/tiles/preview-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/organisations/{instance_id}":{"post":{"summary":"Upload a thumbnail","description":"Upload the thumbnail of a person, an organisation or a project. Send the picture in a multipart form. For a person, you must be this person or an administrator. For a project, you must be a manager of the project. For an organisation, you must be an administrator. The route with the .png extension cannot receive uploads and returns 405.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Image file to use as thumbnail","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The path of the new thumbnail","content":{"application/json":{"schema":{"type":"object","properties":{"thumbnail_path":{"type":"string","description":"URL path to the thumbnail","example":"/api/thumbnails/persons/uuid"}}}}}},"400":{"description":"The file is missing or is not a picture"},"403":{"description":"You cannot change this thumbnail"},"404":{"description":"The person or the project does not exist"},"405":{"description":"This route is read only. Use the route without extension."}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation or project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/organisations/{instance_id}.png":{"post":{"summary":"Upload a thumbnail","description":"Upload the thumbnail of a person, an organisation or a project. Send the picture in a multipart form. For a person, you must be this person or an administrator. For a project, you must be a manager of the project. For an organisation, you must be an administrator. The route with the .png extension cannot receive uploads and returns 405.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Image file to use as thumbnail","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The path of the new thumbnail","content":{"application/json":{"schema":{"type":"object","properties":{"thumbnail_path":{"type":"string","description":"URL path to the thumbnail","example":"/api/thumbnails/persons/uuid"}}}}}},"400":{"description":"The file is missing or is not a picture"},"403":{"description":"You cannot change this thumbnail"},"404":{"description":"The person or the project does not exist"},"405":{"description":"This route is read only. Use the route without extension."}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation or project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/organisations/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/persons/{instance_id}":{"post":{"summary":"Upload a thumbnail","description":"Upload the thumbnail of a person, an organisation or a project. Send the picture in a multipart form. For a person, you must be this person or an administrator. For a project, you must be a manager of the project. For an organisation, you must be an administrator. The route with the .png extension cannot receive uploads and returns 405.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Image file to use as thumbnail","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The path of the new thumbnail","content":{"application/json":{"schema":{"type":"object","properties":{"thumbnail_path":{"type":"string","description":"URL path to the thumbnail","example":"/api/thumbnails/persons/uuid"}}}}}},"400":{"description":"The file is missing or is not a picture"},"403":{"description":"You cannot change this thumbnail"},"404":{"description":"The person or the project does not exist"},"405":{"description":"This route is read only. Use the route without extension."}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation or project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/persons/{instance_id}.png":{"post":{"summary":"Upload a thumbnail","description":"Upload the thumbnail of a person, an organisation or a project. Send the picture in a multipart form. For a person, you must be this person or an administrator. For a project, you must be a manager of the project. For an organisation, you must be an administrator. The route with the .png extension cannot receive uploads and returns 405.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Image file to use as thumbnail","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The path of the new thumbnail","content":{"application/json":{"schema":{"type":"object","properties":{"thumbnail_path":{"type":"string","description":"URL path to the thumbnail","example":"/api/thumbnails/persons/uuid"}}}}}},"400":{"description":"The file is missing or is not a picture"},"403":{"description":"You cannot change this thumbnail"},"404":{"description":"The person or the project does not exist"},"405":{"description":"This route is read only. Use the route without extension."}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation or project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/persons/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/projects/{instance_id}":{"post":{"summary":"Upload a thumbnail","description":"Upload the thumbnail of a person, an organisation or a project. Send the picture in a multipart form. For a person, you must be this person or an administrator. For a project, you must be a manager of the project. For an organisation, you must be an administrator. The route with the .png extension cannot receive uploads and returns 405.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"Image file to use as thumbnail","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The path of the new thumbnail","content":{"application/json":{"schema":{"type":"object","properties":{"thumbnail_path":{"type":"string","description":"URL path to the thumbnail","example":"/api/thumbnails/persons/uuid"}}}}}},"400":{"description":"The file is missing or is not a picture"},"403":{"description":"You cannot change this thumbnail"},"404":{"description":"The person or the project does not exist"},"405":{"description":"This route is read only. Use the route without extension."}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation or project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/thumbnails/projects/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/projects/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/projects/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/projects/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/projects/{instance_id}.png":{"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/projects/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/projects/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/preview-background-files/{instance_id}":{"post":{"summary":"Upload a preview background file","description":"Upload the file of a preview background. The route also makes a thumbnail. Send the file in a multipart form. You must be an administrator.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"HDR file to upload","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"The preview background file","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview background file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"extension":{"type":"string","description":"File extension","example":"hdr"},"file_size":{"type":"integer","description":"File size in bytes","example":2048000}}}}}},"400":{"description":"The file is missing, or its format is not valid"},"403":{"description":"You are not an administrator"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/pictures/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/thumbnails/preview-background-files/{instance_id}.png":{"get":{"summary":"Get a thumbnail","description":"Get the thumbnail of a person, an organisation, a project or a preview background file. For a project, you must have access to the project, if you are not a manager.","responses":{"200":{"description":"The PNG thumbnail","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The thumbnail does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the person, organisation, project or preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/thumbnails/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25.png\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/thumbnails/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25.png\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/pictures/preview-background-files/{instance_id}.{extension}":{"get":{"summary":"Download a preview background file","description":"Download the file of a preview background.","responses":{"200":{"description":"The file","content":{"image/vnd.radiance":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"The preview background file or its file does not exist"}},"parameters":[{"in":"path","name":"instance_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview background file","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"extension","required":true,"schema":{"type":"string"},"description":"Extension of the file, for example hdr","example":"hdr"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/pictures/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25.hdr\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/pictures/preview-background-files/a24a6ea4-ce75-4665-a070-57453082c25.hdr\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/preview-files/{preview_file_id}/set-main-preview":{"put":{"summary":"Set the main preview of an entity","description":"Use a preview as the picture of its entity. For a movie, give frame_number to use this frame as the picture. Clients cannot use this route.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"frame_number":{"type":"integer","description":"Frame of the movie to use as the picture. You can also give it as a query parameter when the request has no JSON body.","example":120}}}}}},"responses":{"200":{"description":"The entity","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Entity unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"preview_file_id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"preview_file_status":{"type":"string","enum":["processing","ready","broken","missing"],"description":"Status of the preview file. Its pictures can be read once it is ready.","example":"processing"}}}}}},"400":{"description":"frame_number is given for a preview that is not a movie"},"403":{"description":"You do not have access to this entity, or you are a client"},"404":{"description":"The preview file does not exist"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"no_job","required":false,"schema":{"type":"boolean","default":false},"description":"Extract the frame in the request instead of the job queue"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/set-main-preview?frame_number=120\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/set-main-preview\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"frame_number\": 120\n}\npayload = None\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/preview-files/{preview_file_id}/extract-frame":{"get":{"summary":"Get a frame of a movie preview","description":"Get a frame of a movie preview as a PNG picture. The default frame number is 0. You must be a manager of the project.","responses":{"200":{"description":"The PNG picture","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You are not a manager of the project"},"404":{"description":"The file of the preview is not available"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"frame_number","required":false,"schema":{"type":"integer"},"description":"Number of the frame. The default value is 0.","example":120}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/extract-frame?frame_number=120\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/extract-frame\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"frame_number\": 120\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/preview-files/{preview_file_id}/extract-annotated-frame":{"get":{"summary":"Get an annotated frame of a preview","description":"Get a frame of a movie preview, or the picture of a picture preview, with the annotation of this frame on it. For a movie, frame_number is required. For a picture, frame_number is ignored. You must be a manager of the project.","responses":{"200":{"description":"The PNG picture","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"There is no annotation, frame_number is missing for a movie, or the extension is not supported"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The file of the preview is not available"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"frame_number","required":false,"schema":{"type":"integer","minimum":1},"description":"Number of the frame, from 1. Movies only.","example":120}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/extract-annotated-frames":{"get":{"summary":"Get the annotated frames of a preview as a ZIP file","description":"Get a ZIP file with one PNG picture for each annotation. For a movie, each picture is the frame of the annotation. For a picture, each picture is the picture with the annotation on it. You must be a manager of the project.","responses":{"200":{"description":"The ZIP file","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The preview has no annotations, or its extension is not supported"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The file of the preview is not available"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/extract-annotated-frames-pdf":{"get":{"summary":"Get the annotated frames of a preview as a PDF","description":"Get a PDF file with one page for each annotation. For a movie, each picture is the frame of the annotation. For a picture, each picture is the picture with the annotation on it. You must be a manager of the project.","responses":{"200":{"description":"The PDF file","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The preview has no annotations, or its extension is not supported"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The file of the preview is not available"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"]}},"/actions/preview-files/{preview_file_id}/update-position":{"put":{"summary":"Change the position of a preview","description":"Change the position of a preview in its revision. A revision can have several previews. You must be able to do actions on the task. A client of the project cannot use this route.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"position":{"type":"integer","minimum":0,"default":0,"description":"New position for the preview","example":2}}}}}},"responses":{"200":{"description":"The previews of the revision","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"position":{"type":"integer","description":"Preview position","example":2}}}}}},"400":{"description":"position is negative or is not an integer"},"403":{"description":"You cannot do actions on this task"},"404":{"description":"The preview file does not exist"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"position\": 2\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-position\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"position\": 2\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/preview-files/{preview_file_id}/update-annotations":{"put":{"summary":"Change the annotations of a preview","description":"Change the annotations of a preview. Give the annotations to add in additions, the annotations to change in updates, and the annotations to delete in deletions. Managers and clients of the project can use this route. A supervisor can use it for the tasks of their departments, or for all the tasks if the supervisor has no department. Other users cannot use this route.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"additions":{"type":"array","description":"Annotations to add","items":{"type":"object"},"example":[{"type":"drawing","x":100,"y":200}]},"updates":{"type":"array","description":"Annotations to update","items":{"type":"object"},"example":[{"id":"uuid","x":150,"y":250}]},"deletions":{"type":"array","description":"Annotation IDs to remove","items":{"type":"string","format":"uuid"},"example":["a24a6ea4-ce75-4665-a070-57453082c250"]}}}}}},"responses":{"200":{"description":"The preview with its annotations","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview file unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"annotations":{"type":"array","description":"Updated annotations","items":{"type":"object"}}}}}}},"400":{"description":"additions, updates or deletions is not a list"},"403":{"description":"You cannot change the annotations of this preview"},"404":{"description":"The preview file does not exist"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-annotations\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"additions\": [\n    {\n      \"type\": \"drawing\",\n      \"x\": 100,\n      \"y\": 200\n    }\n  ],\n  \"updates\": [\n    {\n      \"id\": \"uuid\",\n      \"x\": 150,\n      \"y\": 250\n    }\n  ],\n  \"deletions\": [\n    \"a24a6ea4-ce75-4665-a070-57453082c25\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/update-annotations\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"additions\": [\n        {\n            \"type\": \"drawing\",\n            \"x\": 100,\n            \"y\": 200\n        }\n    ],\n    \"updates\": [\n        {\n            \"id\": \"uuid\",\n            \"x\": 150,\n            \"y\": 250\n        }\n    ],\n    \"deletions\": [\n        \"a24a6ea4-ce75-4665-a070-57453082c25\"\n    ]\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/preview-files/{preview_file_id}/extract-tile":{"get":{"summary":"Make the tile sheet of a movie preview","description":"Make the tile sheet of a movie preview and save it in the storage. A tile sheet is a picture with small frames of the movie. You must have access to the task.","responses":{"200":{"description":"The PNG tile sheet","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"403":{"description":"You do not have access to the task of this preview"},"404":{"description":"The file of the preview is not available"}},"parameters":[{"in":"path","name":"preview_file_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the preview file","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["Previews"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/extract-tile\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/preview-files/a24a6ea4-ce75-4665-a070-57453082c25/extract-tile\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/context":{"get":{"summary":"Get my context","description":"Get the data that an application needs to start. projects are your open projects, or all the open projects for an administrator. persons depends on your role. A client gets only the members of the teams of their open projects, with a reduced set of fields. A manager or an administrator gets all the persons with all their fields. Another role gets all the persons with a minimal set of fields. An administrator also gets user_limit. Each project gives asset_type_workflows, the task type ids of the workflows it sets, by asset type id.","responses":{"200":{"description":"The context","content":{"application/json":{"schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object"},"description":"Available projects","example":[{"id":"uuid","name":"Project 1"}]},"departments":{"type":"array","items":{"type":"object"},"description":"Available departments","example":[{"id":"uuid","name":"Animation"}]},"asset_types":{"type":"array","items":{"type":"object"},"description":"Available asset types","example":[{"id":"uuid","name":"Character"}]},"task_types":{"type":"array","items":{"type":"object"},"description":"Available task types","example":[{"id":"uuid","name":"Modeling"}]},"task_status":{"type":"array","items":{"type":"object"},"description":"Available task statuses","example":[{"id":"uuid","name":"In Progress"}]},"custom_actions":{"type":"array","items":{"type":"object"},"description":"Available custom actions","example":[{"id":"uuid","name":"Custom Action"}]},"status_automations":{"type":"array","items":{"type":"object"},"description":"Available status automations","example":[{"id":"uuid","name":"Auto Status"}]},"studios":{"type":"array","items":{"type":"object"},"description":"Available studios","example":[{"id":"uuid","name":"Studio Name"}]},"notification_count":{"type":"integer","description":"Number of unread notifications","example":5},"persons":{"type":"array","items":{"type":"object"},"description":"Available persons","example":[{"id":"uuid","name":"John Doe"}]},"project_status":{"type":"array","items":{"type":"object"},"description":"Available project statuses","example":[{"id":"uuid","name":"Active"}]},"search_filters":{"type":"object","description":"Your filters by list type and by project, as in the filters route","example":{"todo":{"all":[{"id":"uuid","name":"My Filter"}]}}},"search_filter_groups":{"type":"object","description":"Your filter groups by list type and by project, as in the filter groups route","example":{"todo":{"all":[{"id":"uuid","name":"Filter Group"}]}}},"preview_background_files":{"type":"array","items":{"type":"object"},"description":"Available preview background files","example":[{"id":"uuid","name":"background.jpg"}]},"project_roles":{"type":"object","additionalProperties":{"type":"string"},"description":"The role you hold on each project where your team link sets one, by project identifier","example":{"a24a6ea4-ce75-4665-a070-57453082c250":"supervisor"}},"plugins":{"type":"array","items":{"type":"object"},"description":"Installed plugins"},"user_limit":{"type":"integer","description":"Maximum number of active users, for an administrator only","example":50}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/context\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/context\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/assets/{asset_id}/tasks":{"get":{"summary":"Get my tasks of an asset","description":"Get the tasks of an asset that are assigned to you. Tasks of closed projects are not listed.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Modeling"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the asset","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/assets/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/assets/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/shots/{shot_id}/tasks":{"get":{"summary":"Get my tasks of a shot","description":"Get the tasks of a shot that are assigned to you. Tasks of closed projects are not listed.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Animation"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/shots/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/shots/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/scenes/{scene_id}/tasks":{"get":{"summary":"Get my tasks of a scene","description":"Get the tasks of a scene that are assigned to you. Tasks of closed projects are not listed.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Layout"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/scenes/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/scenes/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/sequences/{sequence_id}/tasks":{"get":{"summary":"Get my tasks of a sequence","description":"Get the tasks of a sequence that are assigned to you. Tasks of closed projects are not listed.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Compositing"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/assets/{asset_id}/task-types":{"get":{"summary":"Get my task types of an asset","description":"Get the task types of the tasks of an asset that are assigned to you. Task types of closed projects are not listed.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task type name","example":"Modeling"},"short_name":{"type":"string","description":"Task type short name","example":"MOD"},"color":{"type":"string","description":"Task type color","example":"#FF0000"},"priority":{"type":"integer","description":"Task type priority","example":1},"for_entity":{"type":"string","description":"Entity type this task type applies to","example":"Asset"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The asset does not exist"}},"parameters":[{"in":"path","name":"asset_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the asset","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/assets/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/assets/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/shots/{shot_id}/task-types":{"get":{"summary":"Get my task types of a shot","description":"Get the task types of a shot where you have an assigned task. Task types of closed projects are not listed.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task type name","example":"Animation"},"short_name":{"type":"string","description":"Task type short name","example":"ANIM"},"color":{"type":"string","description":"Task type color","example":"#00FF00"},"priority":{"type":"integer","description":"Task type priority","example":2},"for_entity":{"type":"string","description":"Entity type this task type applies to","example":"Shot"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The shot does not exist"}},"parameters":[{"in":"path","name":"shot_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the shot","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/shots/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/shots/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/scenes/{scene_id}/task-types":{"get":{"summary":"Get my task types of a scene","description":"Get the task types of a scene where you have an assigned task. Task types of closed projects are not listed.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task type name","example":"Layout"},"short_name":{"type":"string","description":"Task type short name","example":"LAY"},"color":{"type":"string","description":"Task type color","example":"#0000FF"},"priority":{"type":"integer","description":"Task type priority","example":3},"for_entity":{"type":"string","description":"Entity type this task type applies to","example":"Scene"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The scene does not exist"}},"parameters":[{"in":"path","name":"scene_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the scene","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/scenes/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/scenes/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/sequences/{sequence_id}/task-types":{"get":{"summary":"Get my task types of a sequence","description":"Get the task types of a sequence where you have an assigned task. Task types of closed projects are not listed.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task type name","example":"Compositing"},"short_name":{"type":"string","description":"Task type short name","example":"COMP"},"color":{"type":"string","description":"Task type color","example":"#FFFF00"},"priority":{"type":"integer","description":"Task type priority","example":4},"for_entity":{"type":"string","description":"Entity type this task type applies to","example":"Sequence"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/projects/open":{"get":{"summary":"Get my open projects","description":"Get the open projects of your teams. An administrator gets all the open projects. Give name to get the project with exactly this name. The case must match. The metadata descriptors of each project are reduced to the ones your role on the project can read. Each project gives asset_type_workflows, the task type ids of the workflows it sets, by asset type id.","responses":{"200":{"description":"The list of open projects","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Project unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Project name","example":"My Project"},"description":{"type":"string","description":"Project description","example":"A sample project"},"status":{"type":"string","description":"Project status","example":"Active"},"fps":{"type":"number","description":"Frames per second","example":24.0},"ratio":{"type":"string","description":"Aspect ratio","example":969},"resolution":{"type":"string","description":"Project resolution","example":"1920x1080"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"}},"parameters":[{"in":"query","name":"name","required":false,"schema":{"type":"string"},"description":"Get only the projects with this name","example":"My Project"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/projects/open?name=My%20Project\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/projects/open\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"name\": \"My Project\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/projects/{project_id}/asset-types":{"get":{"summary":"Get my asset types of a project","description":"Get the asset types of a project. The route uses only the entities where you have an assigned task. If the project is closed, the list is empty.","responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Asset type name","example":"Character"},"short_name":{"type":"string","description":"Asset type short name","example":"CHAR"},"color":{"type":"string","description":"Asset type color","example":"#FF0000"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/projects/{project_id}/asset-types/{asset_type_id}/assets":{"get":{"summary":"Get my assets of an asset type","description":"Get the assets of an asset type in a project. The route uses only the entities where you have an assigned task. If the project is closed, the list is empty.","responses":{"200":{"description":"The list of assets","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Asset unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Asset name","example":"Main Character"},"description":{"type":"string","description":"Asset description","example":"Main character model for the project"},"asset_type_id":{"type":"string","format":"uuid","description":"Asset type identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The project or the asset type does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"asset_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the asset type","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/b35b7fb5-df86-5776-b181-68564193d36/assets\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/asset-types/b35b7fb5-df86-5776-b181-68564193d36/assets\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/projects/{project_id}/sequences":{"get":{"summary":"Get my sequences of a project","description":"Get the sequences of a project where you have an assigned task on a shot of the sequence. A task on the sequence itself does not count. If the project is closed, the list is empty.","responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Sequence unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Sequence name","example":"SEQ001"},"description":{"type":"string","description":"Sequence description","example":"Main sequence"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"fps":{"type":"number","description":"Frames per second","example":24.0},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/sequences\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/projects/{project_id}/episodes":{"get":{"summary":"Get my episodes of a project","description":"Get the episodes of a project where you have an assigned task on a shot of the episode. Tasks on assets, on sequences or on the episode itself do not count. If the project is closed, the list is empty.","responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Episode unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Episode name","example":"Episode 01"},"description":{"type":"string","description":"Episode description","example":"First episode"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the project","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/projects/a24a6ea4-ce75-4665-a070-57453082c25/episodes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/sequences/{sequence_id}/shots":{"get":{"summary":"Get my shots of a sequence","description":"Get the shots of a sequence. The route uses only the entities where you have an assigned task. If the project is closed, the list is empty.","responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Shot unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Shot name","example":"SH001"},"description":{"type":"string","description":"Shot description","example":"Main shot"},"sequence_id":{"type":"string","format":"uuid","description":"Sequence identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/shots\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/shots\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/sequences/{sequence_id}/scenes":{"get":{"summary":"Get my scenes of a sequence","description":"Get the scenes of a sequence. The route uses only the entities where you have an assigned task. If the project is closed, the list is empty.","responses":{"200":{"description":"The list","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Scene unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Scene name","example":"SC001"},"description":{"type":"string","description":"Scene description","example":"Main scene"},"sequence_id":{"type":"string","format":"uuid","description":"Sequence identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/scenes\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/scenes\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/tasks":{"get":{"summary":"Get my tasks","description":"Get your assigned tasks that are not done, in the open projects of your teams.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Modeling"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/tasks-to-check":{"get":{"summary":"Get my tasks to check","description":"Get the tasks that wait for feedback. An administrator gets the tasks of all the open projects. A manager gets the tasks of the open projects they manage. A supervisor gets the tasks of the open projects they supervise, in their departments only. The manager and supervisor roles are the roles held on the project team. If you do not manage or supervise a project, you get an empty list. Without page, the response is a list without order. With page, the response is a page of tasks.","responses":{"200":{"description":"The list of tasks, or a page of tasks if you give page","content":{"application/json":{"schema":{"oneOf":[{"type":"array","description":"Bare task list, when no page is given","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Review"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}},{"type":"object","description":"Pagination envelope, when a page is given","properties":{"data":{"type":"array","items":{"type":"object"},"description":"Tasks of the requested page"},"stats":{"type":"object","properties":{"total":{"type":"integer","description":"Total number of matching tasks"},"total_duration":{"type":"integer","description":"Total duration in minutes"},"total_estimation":{"type":"integer","description":"Total estimation in minutes"}}},"page":{"type":"integer","description":"Page number, clamped to 1"},"limit":{"type":"integer","description":"Number of tasks per page"},"is_more":{"type":"boolean","description":"True if a later page holds more tasks"}}}]}}}},"400":{"description":"A filter is not valid"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this project"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this task type"},{"in":"query","name":"task_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this task status"},{"in":"query","name":"person_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of these assignees. Give a comma-separated list of person identifiers, or the value unassigned to get the tasks without assignee."},{"in":"query","name":"episode_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the tasks of this episode"},{"in":"query","name":"due_date_since","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get only the tasks that end on this date or after"},{"in":"query","name":"due_date_until","required":false,"schema":{"type":"string","format":"date"},"example":"2022-07-12","description":"Get only the tasks that end on this date or before"},{"in":"query","name":"order_by","required":false,"schema":{"type":"string","enum":["priority","due_date","entity_name","estimation"]},"description":"Sort order. One of priority, due_date, estimation or entity_name. Another value sorts by project, episode, sequence, entity type, entity and task type names."},{"in":"query","name":"page","required":false,"schema":{"type":"integer"},"example":1,"description":"Page to get. A value below 1 is read as 1."},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","default":100},"example":100,"description":"Number of tasks in a page. The default value is 100. A value below 1 is read as 1."}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/tasks-to-check\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/tasks-to-check\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/tasks-to-check/filter-values":{"get":{"summary":"Get the filter values of my tasks to check","description":"Get the distinct project, task type, task status, episode and assignee identifiers of the tasks that wait for feedback in your scope. The scope is the one of the tasks-to-check route. If you do not manage or supervise a project, each list is empty. The filters of the list use these values.","responses":{"200":{"description":"The filter values","content":{"application/json":{"schema":{"type":"object","properties":{"project_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"task_type_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"task_status_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"episode_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"person_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"]}},"/data/user/done-tasks":{"get":{"summary":"Get my done tasks","description":"Get your assigned tasks that are done, in the open projects of your teams.","responses":{"200":{"description":"The list of done tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Completed Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"assigner_id":{"type":"string","format":"uuid","description":"Person who assigned the task","example":"e68e02e8-0219-8009-e514-918974260690"},"assignees":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of assigned person identifiers","example":["f79f13f9-1320-9010-f625-a09008537180"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/done-tasks\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/done-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/filters":{"post":{"summary":"Create a filter","description":"Create a filter. A filter keeps a search query for a list. Its name must be free among your filters with the same list_type, entity_type, project_id, and search_filter_group_id. To share it, give project_id and set is_shared to true. You must be a manager of this project, or an administrator. Otherwise the filter is created with is_shared set to false. If you give search_filter_group_id, the filter takes the same is_shared value as the group.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","query"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Filter name","example":"My Custom Filter"},"query":{"type":"string","minLength":1,"maxLength":500,"description":"Filter query as JSON string","example":"{\"project_id\": \"uuid\"}"},"list_type":{"type":"string","maxLength":80,"description":"Type of list this filter applies to","example":"todo"},"entity_type":{"type":"string","maxLength":80,"description":"Entity type this filter applies to","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"is_shared":{"type":"boolean","description":"Whether to share this filter with others","default":false,"example":false},"search_filter_group_id":{"type":"string","format":"uuid","description":"Filter group identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}},"responses":{"201":{"description":"The new filter","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"Filter name","example":"My Custom Filter"},"query":{"type":"string","description":"Filter query JSON","example":"{\"project_id\": \"uuid\"}"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"is_shared":{"type":"boolean","description":"Whether filter is shared","example":false},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, the name is already used in this list, or is_shared differs from the value of the filter group"},"403":{"description":"You use a bot token"},"404":{"description":"The project, the filter group, or the department does not exist"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/user/filters\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"My Custom Filter\",\n  \"query\": \"{\\\"project_id\\\": \\\"uuid\\\"}\",\n  \"list_type\": \"todo\",\n  \"entity_type\": \"Asset\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"is_shared\": false,\n  \"search_filter_group_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filters\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"My Custom Filter\",\n    \"query\": \"{\\\"project_id\\\": \\\"uuid\\\"}\",\n    \"list_type\": \"todo\",\n    \"entity_type\": \"Asset\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"is_shared\": false,\n    \"search_filter_group_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get my filters","description":"Get your filters and the shared filters of your open projects. A filter linked to a department is listed only if you are in this department or if you are a manager or an administrator. The response is an object. The first key is the list type. The second key is the project identifier, or all for the filters without project.","responses":{"200":{"description":"The filters, by list type and by project","content":{"application/json":{"schema":{"type":"object","description":"The first key is the list type. The second key is the project identifier, or all for the filters without project. The value is the list of filters.","additionalProperties":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Filter name","example":"My Filter"},"query":{"type":"string","description":"Filter query JSON","example":"{\"project_id\": \"uuid\"}"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"is_shared":{"type":"boolean","description":"Whether filter is shared","example":false},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/filters\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filters\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/filters/{filter_id}":{"delete":{"summary":"Delete a filter","description":"Delete a filter. The filter must be yours. An administrator can use the filters of all the users.","responses":{"204":{"description":"The filter is deleted"},"403":{"description":"You use a bot token"},"404":{"description":"You have no filter with this identifier"}},"parameters":[{"in":"path","name":"filter_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the filter","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/user/filters/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filters/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a filter","description":"Update a filter. The filter must be yours. An administrator can update the filters of all the users. Another project_id moves the filter to this project. A null project_id changes nothing. After a new name or a move, the name must be free among the filters of the owner with the same list_type, entity_type, project_id, and search_filter_group_id. To set is_shared to true, give project_id in the body too. You must be a manager of this project, or an administrator. Otherwise is_shared is set to false. If the filter is in a group, is_shared must keep the value of the group.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Filter name","example":"Updated Filter Name"},"search_query":{"type":"string","minLength":1,"maxLength":500,"description":"Updated filter query","example":"{\"status\": \"active\"}"},"search_filter_group_id":{"type":"string","format":"uuid","description":"Filter group identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"is_shared":{"type":"boolean","description":"Whether to share this filter","example":true},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"d57d91d7-f108-7998-d403-80786315f580"}}}}}},"responses":{"200":{"description":"The updated filter","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter unique identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"name":{"type":"string","description":"Filter name","example":"Updated Filter Name"},"query":{"type":"string","description":"Filter query JSON","example":"{\"status\": \"active\"}"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"f79f13f9-1320-9010-f625-a09008537180"},"is_shared":{"type":"boolean","description":"Whether filter is shared","example":true},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, the name is already used in this list, or is_shared differs from the value of the filter group"},"403":{"description":"You use a bot token"},"404":{"description":"You have no filter with this identifier, or the project, the filter group, or the department does not exist"}},"parameters":[{"in":"path","name":"filter_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the filter","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/user/filters/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Filter Name\",\n  \"search_query\": \"{\\\"status\\\": \\\"active\\\"}\",\n  \"search_filter_group_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"is_shared\": true,\n  \"project_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n  \"department_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filters/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Filter Name\",\n    \"search_query\": \"{\\\"status\\\": \\\"active\\\"}\",\n    \"search_filter_group_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"is_shared\": true,\n    \"project_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\",\n    \"department_id\": \"d57d9hd7-fh08-7998-d403-80786315f58\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/filter-groups":{"post":{"summary":"Create a filter group","description":"Create a filter group. A filter group puts several filters together. Its name must be free among your groups with the same list_type, entity_type, and project_id. To share it, give project_id and set is_shared to true. You must be a manager of this project, or an administrator. Otherwise the group is created with is_shared set to false.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Filter group name","example":"My Filter Group"},"color":{"type":"string","maxLength":8,"description":"Filter group color in hex format","example":"#FF0000"},"list_type":{"type":"string","maxLength":80,"description":"Type of list this filter group applies to","example":"todo"},"entity_type":{"type":"string","maxLength":80,"description":"Entity type this filter group applies to","example":"Asset"},"is_shared":{"type":"boolean","description":"Whether to share this filter group with others","default":false,"example":false},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The new filter group","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter group unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Filter group name","example":"My Filter Group"},"color":{"type":"string","description":"Filter group color","example":"#FF0000"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"is_shared":{"type":"boolean","description":"Whether filter group is shared","example":false},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, or the name is already used in this list"},"403":{"description":"You use a bot token"},"404":{"description":"The project or the department does not exist"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/user/filter-groups\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"My Filter Group\",\n  \"color\": \"#FF0000\",\n  \"list_type\": \"todo\",\n  \"entity_type\": \"Asset\",\n  \"is_shared\": false,\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"department_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filter-groups\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"My Filter Group\",\n    \"color\": \"#FF0000\",\n    \"list_type\": \"todo\",\n    \"entity_type\": \"Asset\",\n    \"is_shared\": false,\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"department_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get my filter groups","description":"Get your filter groups and the shared filter groups of your open projects. A filter group linked to a department is listed only if you are in this department or if you are a manager or an administrator. The response is an object. The first key is the list type. The second key is the project identifier, or all for the groups without project.","responses":{"200":{"description":"The filter groups, by list type and by project","content":{"application/json":{"schema":{"type":"object","description":"The first key is the list type. The second key is the project identifier, or all for the filter groups without project. The value is the list of filter groups.","additionalProperties":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter group unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Filter group name","example":"My Filter Group"},"color":{"type":"string","description":"Filter group color","example":"#FF0000"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"is_shared":{"type":"boolean","description":"Whether filter group is shared","example":false},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/filter-groups\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filter-groups\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/filter-groups/{filter_group_id}":{"get":{"summary":"Get a filter group","description":"Get a filter group. The filter must be yours. An administrator can use the filters of all the users.","responses":{"200":{"description":"The filter group","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter group unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Filter group name","example":"My Filter Group"},"color":{"type":"string","description":"Filter group color","example":"#FF0000"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"is_shared":{"type":"boolean","description":"Whether filter group is shared","example":false},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You use a bot token"},"404":{"description":"You have no filter group with this identifier"}},"parameters":[{"in":"path","name":"filter_group_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the filter group","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/filter-groups/{filter_group_id}\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filter-groups/{filter_group_id}\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a filter group","description":"Delete a filter group. The filter group must be yours. The route also deletes your filters in the group. In a shared group, the filters of the other users stay, out of the group. An administrator can use the filters of all the users.","responses":{"204":{"description":"The filter group is deleted"},"403":{"description":"You use a bot token"},"404":{"description":"You have no filter group with this identifier"}},"parameters":[{"in":"path","name":"filter_group_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the filter group","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/user/filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Update a filter group","description":"Update a filter group. The group must be yours. An administrator can update the groups of all the users. Another project_id moves the group, without its filters, to this project. A null project_id changes nothing. After a new name or a move, the name must be free among the groups of the owner with the same list_type, entity_type, and project_id. To set is_shared to true, give project_id in the body too. You must be a manager of this project, or an administrator. Otherwise is_shared is set to false. If you change is_shared, the filters of the group take the same value.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Filter group name","example":"Updated Filter Group"},"color":{"type":"string","maxLength":8,"description":"Filter group color","example":"#00FF00"},"is_shared":{"type":"boolean","description":"Whether to share this filter group","example":true},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"department_id":{"type":"string","format":"uuid","description":"Department identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}},"responses":{"200":{"description":"The updated filter group","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Filter group unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"Filter group name","example":"Updated Filter Group"},"color":{"type":"string","description":"Filter group color","example":"#00FF00"},"list_type":{"type":"string","description":"List type","example":"todo"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"is_shared":{"type":"boolean","description":"Whether filter group is shared","example":true},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid, or the name is already used in this list"},"403":{"description":"You use a bot token"},"404":{"description":"You have no filter group with this identifier, or the project or the department does not exist"}},"parameters":[{"in":"path","name":"filter_group_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the filter group","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/user/filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Updated Filter Group\",\n  \"color\": \"#00FF00\",\n  \"is_shared\": true,\n  \"project_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n  \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/filter-groups/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Updated Filter Group\",\n    \"color\": \"#00FF00\",\n    \"is_shared\": true,\n    \"project_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"department_id\": \"c46c8gc6-eg97-6887-c292-79675204e47\"\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/desktop-login-logs":{"post":{"summary":"Add a desktop login","description":"Add a login log of a desktop tool for you. Give date in the body or in the query string. Without date, the log uses the current date and time.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date-time","description":"Login date and time","example":"2023-01-01T10:30:00"}}}}}},"responses":{"201":{"description":"The new desktop login log","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Login log unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"date":{"type":"string","format":"date","description":"Login date","example":"2023-01-01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/user/desktop-login-logs\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"date\": \"2023-01-01\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/desktop-login-logs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"date\": \"2023-01-01\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get my desktop logins","description":"Get the login logs of your desktop tools.","responses":{"200":{"description":"The list of desktop login logs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Login log unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"date":{"type":"string","format":"date","description":"Login date","example":"2023-01-01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/desktop-login-logs\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/desktop-login-logs\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/time-spents":{"get":{"summary":"Get my time spents","description":"Get your time spent entries. To get the entries of a period, give start_date and end_date.","responses":{"200":{"description":"The list of time spent entries","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"project_id":{"type":"string","format":"uuid","description":"Project of the task, given with a date range","example":"d57d91d7-f1a8-7998-d3a3-8a786315f581"},"task_type_id":{"type":"string","format":"uuid","description":"Task type of the task, given with a date range","example":"e68ea2e8-a2b9-8aa9-e4b4-9b897426a692"},"date":{"type":"string","format":"date","description":"Date of time spent","example":"2023-01-01"},"duration":{"type":"number","description":"Duration in seconds","example":3600},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"Only one date of the period is given, or a date is not valid"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"query","name":"start_date","required":false,"schema":{"type":"string","format":"date"},"description":"First date of the period, in the YYYY-MM-DD format","example":"2023-01-01"},{"in":"query","name":"end_date","required":false,"schema":{"type":"string","format":"date"},"description":"Last date of the period, in the YYYY-MM-DD format","example":"2023-12-31"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/time-spents?start_date=2023-01-01&end_date=2023-12-31\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/time-spents\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"start_date\": \"2023-01-01\",\n    \"end_date\": \"2023-12-31\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/time-spents/{date}":{"get":{"summary":"Get my time spents for a date","description":"Get your time spent entries for a date.","responses":{"200":{"description":"The list of your time spent entries for this date","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"date":{"type":"string","format":"date","description":"Date of time spent","example":"2023-01-01"},"duration":{"type":"number","description":"Duration in seconds","example":3600},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"description":"Date in the YYYY-MM-DD format","example":"2023-01-01"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/time-spents/2023-01-01\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/time-spents/2023-01-01\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/tasks/{task_id}/time-spents/{date}":{"get":{"summary":"Get my time spent on a task for a date","description":"Get your time spent on a task for a date.","responses":{"200":{"description":"The time spent, or null if you have no entry on this task for this date","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Time spent unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"date":{"type":"string","format":"date","description":"Date of time spent","example":"2023-01-01"},"duration":{"type":"number","description":"Duration in seconds","example":3600},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"description":"Date in the YYYY-MM-DD format","example":"2023-01-01"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2023-01-01\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/time-spents/2023-01-01\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/day-offs/{date}":{"get":{"summary":"Get my day off for a date","description":"Get your day off for a date. If you work on this date, the response is an empty object.","responses":{"200":{"description":"The day off, or an empty object","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Day off unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"date":{"type":"string","format":"date","description":"Day off date","example":"2023-01-01"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The date is not valid"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"date","required":true,"schema":{"type":"string","format":"date"},"description":"Date in the YYYY-MM-DD format","example":"2023-01-01"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/day-offs/2023-01-01\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/day-offs/2023-01-01\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/notifications":{"get":{"summary":"Get my notifications","description":"Get your last 100 notifications that match the filters, the newest first.","responses":{"200":{"description":"The list of notifications","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Notification unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"type":{"type":"string","description":"Notification type","example":"comment"},"read":{"type":"boolean","description":"Whether notification is read","example":false},"author_id":{"type":"string","format":"uuid","description":"Author person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"f79f13f9-1320-9010-f625-a09008537180"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"task_type_id or task_status_id is not a UUID, or after or before is not a date"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"query","name":"after","required":false,"schema":{"type":"string","format":"date"},"description":"Get the notifications after this date","example":"2023-01-01"},{"in":"query","name":"before","required":false,"schema":{"type":"string","format":"date"},"description":"Get the notifications before this date","example":"2023-12-31"},{"in":"query","name":"task_type_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the notifications of this task type","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"query","name":"task_status_id","required":false,"schema":{"type":"string","format":"uuid"},"description":"Get only the notifications of this task status","example":"b35b7fb5-df86-5776-b181-68564193d360"},{"in":"query","name":"type","required":false,"schema":{"type":"string"},"description":"Get only the notifications of this type, for example comment or mention","example":"comment"},{"in":"query","name":"read","required":false,"schema":{"type":"boolean"},"description":"Get only the read notifications, or only the unread notifications","example":false},{"in":"query","name":"watching","required":false,"schema":{"type":"boolean"},"description":"Get only the notifications of the tasks that you watch, or of the other tasks","example":true}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/notifications?after=2023-01-01&before=2023-12-31&task_type_id=a24a6ea4-ce75-4665-a070-57453082c25&task_status_id=b35b7fb5-df86-5776-b181-68564193d36&type=comment&read=false&watching=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/notifications\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"after\": \"2023-01-01\",\n    \"before\": \"2023-12-31\",\n    \"task_type_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"task_status_id\": \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"type\": \"comment\",\n    \"read\": false,\n    \"watching\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/notifications/{notification_id}":{"get":{"summary":"Get a notification","description":"Get one of your notifications.","responses":{"200":{"description":"The notification","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Notification unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"type":{"type":"string","description":"Notification type","example":"comment"},"read":{"type":"boolean","description":"Whether notification is read","example":false},"author_id":{"type":"string","format":"uuid","description":"Author person identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The identifier is not a UUID"},"403":{"description":"You use a bot token"},"404":{"description":"You have no notification with this identifier"}},"parameters":[{"in":"path","name":"notification_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the notification","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/notifications/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/notifications/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"put":{"summary":"Mark a notification as read or unread","description":"Set if one of your notifications is read.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"type":"boolean","description":"Mark notification as read or unread","example":true}}}}}},"responses":{"200":{"description":"The updated notification","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Notification unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"type":{"type":"string","description":"Notification type","example":"comment"},"read":{"type":"boolean","description":"Whether notification is read","example":true},"author_id":{"type":"string","format":"uuid","description":"Author person identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"comment_id":{"type":"string","format":"uuid","description":"Comment identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You use a bot token"},"404":{"description":"You have no notification with this identifier"}},"parameters":[{"in":"path","name":"notification_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the notification","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X PUT \"http://api.example.com/data/user/notifications/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"read\": true\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/notifications/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"read\": true\n}\n\nresponse = requests.put(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/tasks/{task_id}/subscribed":{"get":{"summary":"Check my subscription to a task","description":"Check if you get the notifications of a task.","responses":{"200":{"description":"True if you are subscribed","content":{"application/json":{"schema":{"type":"boolean","example":true}}}},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/subscribed\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/subscribed\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/chats":{"get":{"summary":"Get my chats","description":"Get the chats where you are a participant, in the open projects only. A client gets an empty list.","responses":{"200":{"description":"The list of chats","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Chat unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"participants":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of participant person identifiers","example":["c46c80c6-e097-6887-c292-79675204e470"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/chats\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/chats\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/chats/{entity_id}/join":{"post":{"summary":"Join a chat","description":"Join the chat of an entity as a participant. If the entity has no chat yet, the chat is created. You must be in the team of the project. A client cannot use this route. A vendor must have an assigned task on the entity.","responses":{"200":{"description":"The chat","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Chat unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"entity_type":{"type":"string","description":"Entity type","example":"Asset"},"participants":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of participant person identifiers","example":["d57d91d7-f108-7998-d403-80786315f580"]},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You are not in the team of the project, you are a client on this project, or you are a vendor without a task on this entity, or you use a bot token"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the entity","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/user/chats/a24a6ea4-ce75-4665-a070-57453082c25/join\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/chats/a24a6ea4-ce75-4665-a070-57453082c25/join\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Leave a chat","description":"Leave the chat of an entity. You do not get the messages of this chat after. You must be in the team of the project. A vendor must have an assigned task on the entity.","responses":{"204":{"description":"You left the chat"},"403":{"description":"You are not in the team of the project, or you are a vendor without a task on this entity, or you use a bot token"},"404":{"description":"The entity does not exist"}},"parameters":[{"in":"path","name":"entity_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the entity","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/user/chats/a24a6ea4-ce75-4665-a070-57453082c25/join\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/chats/a24a6ea4-ce75-4665-a070-57453082c25/join\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/tasks/subscribe":{"post":{"summary":"Subscribe to tasks","description":"Subscribe to each task of the list in one request. A subscription sends you a notification for each comment on these tasks. You must be in the team of the project of each task. If one task does not exist or is not allowed, nothing is created.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}}}}},"responses":{"201":{"description":"The new subscriptions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not in the team of the project of one task, or you use a bot token"},"404":{"description":"One task does not exist"}},"tags":["User"]}},"/actions/user/tasks/unsubscribe":{"post":{"summary":"Unsubscribe from tasks","description":"Remove your subscriptions to the tasks of the list in one request.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["task_ids"],"properties":{"task_ids":{"type":"array","items":{"type":"string","format":"uuid"}}}}}}},"responses":{"200":{"description":"The identifiers of the tasks"},"400":{"description":"The body is not valid"},"403":{"description":"You use a bot token"}},"tags":["User"]}},"/actions/user/tasks/{task_id}/subscribe":{"post":{"summary":"Subscribe to a task","description":"Subscribe to a task. A subscription sends you a notification for each comment on this task. You must be in the team of the project of the task. If you are already subscribed, the existing subscription is returned.","responses":{"201":{"description":"The new subscription","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Subscription unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_id":{"type":"string","format":"uuid","description":"Task identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You are not in the team of the project, or you use a bot token"},"404":{"description":"The task does not exist"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/subscribe\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/subscribe\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/tasks/{task_id}/unsubscribe":{"delete":{"summary":"Unsubscribe from a task","description":"Remove your subscription to a task.","responses":{"204":{"description":"The subscription is removed"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"task_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task","example":"a24a6ea4-ce75-4665-a070-57453082c250"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/unsubscribe\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/tasks/a24a6ea4-ce75-4665-a070-57453082c25/unsubscribe\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/clear-avatar":{"delete":{"summary":"Delete my avatar","description":"Delete your avatar file and set has_avatar to false.","responses":{"204":{"description":"The avatar is deleted"},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/user/clear-avatar\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/clear-avatar\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/user/sequences/{sequence_id}/task-types/{task_type_id}/subscribed":{"get":{"summary":"Check my subscription to a sequence","description":"Check if you get the notifications of a sequence for a task type.","responses":{"200":{"description":"True if you are subscribed","content":{"application/json":{"schema":{"type":"boolean","example":true}}}},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task type","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["User"]}},"/data/user/entities/{sequence_id}/task-types/{task_type_id}/subscribed":{"get":{"summary":"Check my subscription to a sequence","description":"Check if you get the notifications of a sequence for a task type.","responses":{"200":{"description":"True if you are subscribed","content":{"application/json":{"schema":{"type":"boolean","example":true}}}},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task type","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/user/entities/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/subscribed\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/user/entities/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/subscribed\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/sequences/{sequence_id}/task-types/{task_type_id}/subscribe":{"post":{"summary":"Subscribe to a sequence","description":"Subscribe to the tasks of a task type in a sequence. A subscription sends you a notification for each comment on these tasks. You must be in the team of the project of the sequence. If you are already subscribed, the existing subscription is returned.","responses":{"201":{"description":"The new subscription","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Subscription unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"person_id":{"type":"string","format":"uuid","description":"Person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"sequence_id":{"type":"string","format":"uuid","description":"Sequence identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"f79f13f9-1320-9010-f625-a09008537180"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You are not in the team of the project, or you use a bot token"},"404":{"description":"The sequence does not exist"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task type","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/subscribe\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/subscribe\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/sequences/{sequence_id}/task-types/{task_type_id}/unsubscribe":{"delete":{"summary":"Unsubscribe from a sequence","description":"Remove your subscription to the tasks of a task type in a sequence.","responses":{"204":{"description":"The subscription is removed"},"403":{"description":"You use a bot token"}},"parameters":[{"in":"path","name":"sequence_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the sequence","example":"a24a6ea4-ce75-4665-a070-57453082c250"},{"in":"path","name":"task_type_id","required":true,"schema":{"type":"string","format":"uuid"},"description":"Unique identifier of the task type","example":"b35b7fb5-df86-5776-b181-68564193d360"}],"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/actions/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/unsubscribe\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/sequences/a24a6ea4-ce75-4665-a070-57453082c25/task-types/b35b7fb5-df86-5776-b181-68564193d36/unsubscribe\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/actions/user/notifications/mark-all-as-read":{"post":{"summary":"Mark all my notifications as read","description":"Mark all your notifications as read.","responses":{"200":{"description":"The result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Operation success status","example":true}}}}}},"403":{"description":"You use a bot token"}},"tags":["User"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/actions/user/notifications/mark-all-as-read\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/actions/user/notifications/mark-all-as-read\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits":{"get":{"summary":"Get edits","description":"Get the edits. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. A vendor gets only the edits of their assigned tasks. The route /data/edits/all gives the same result.","responses":{"200":{"description":"The list of edits","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the edits of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"name","required":false,"example":"Opening Sequence","description":"Get only the edits with this name","schema":{"type":"string"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits?project_id=a24a6ea4-ce75-4665-a070-57453082c25&name=Opening%20Sequence&force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"Opening Sequence\",\n    \"force\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/all":{"get":{"summary":"Get edits","description":"Get the edits. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id. A vendor gets only the edits of their assigned tasks. The route /data/edits/all gives the same result.","responses":{"200":{"description":"The list of edits","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the edits of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"name","required":false,"example":"Opening Sequence","description":"Get only the edits with this name","schema":{"type":"string"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/all?project_id=a24a6ea4-ce75-4665-a070-57453082c25&name=Opening%20Sequence&force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/all\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"Opening Sequence\",\n    \"force\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/with-tasks":{"get":{"summary":"Get edits with their tasks","description":"Get the edits with the tasks of each edit. Filter with project_id or episode_id. Use episode_id=main for the edits without episode, episode_id=all for all the edits. A client gets the tasks without the studio fields. If you are not an administrator, you must give project_id. A vendor gets only the edits of their assigned tasks.","responses":{"200":{"description":"The list of edits with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"project_name":{"type":"string","description":"Project name","example":"My Animation Project"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"name":{"type":"string","description":"Task name","example":"Edit Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"e68e02e8-0219-8009-e514-918974260690"}}}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the edits of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"episode_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the edits of this episode. Use main for the edits without episode, all for all the edits.","schema":{"type":"string"}},{"in":"query","name":"assigned_to","required":false,"description":"With any value, get only the edits that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25&name=Opening%20Sequence&force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"name\": \"Opening Sequence\",\n    \"force\": false\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/{edit_id}":{"get":{"summary":"Get an edit","description":"Get an edit with its project name, episode and tasks. A client gets the tasks without the studio fields.","responses":{"200":{"description":"The edit","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this edit"},"404":{"description":"The edit does not exist"}},"parameters":[{"in":"path","name":"edit_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the edit","schema":{"type":"string","format":"uuid"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete an edit","description":"Delete an edit. The creator of the edit can delete it if the creator is in the project team. Other users must be managers of the project. If the edit has tasks, the edit is only marked as canceled. Use force=true to delete the edit and all its related data. Only a manager of the project can use force=true.","responses":{"204":{"description":"The edit is deleted"},"403":{"description":"You cannot delete this edit"},"404":{"description":"The edit does not exist"}},"parameters":[{"in":"path","name":"edit_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the edit to delete","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"force","required":false,"description":"Delete the edit and all its related data","example":false,"schema":{"type":"boolean"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/{edit_id}/task-types":{"get":{"summary":"Get the task types of an edit","description":"Get the task types of the tasks of an edit.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task type name","example":"Edit"},"short_name":{"type":"string","description":"Task type short name","example":"EDT"},"color":{"type":"string","description":"Task type color code","example":"#FF5733"},"for_entity":{"type":"string","description":"Entity type this task type is for","example":"Edit"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this edit"},"404":{"description":"The edit does not exist"}},"parameters":[{"in":"path","name":"edit_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the edit","schema":{"type":"string","format":"uuid"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/{edit_id}/tasks":{"get":{"summary":"Get the tasks of an edit","description":"Get the tasks of an edit.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Edit Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"assigned_to":{"type":"string","format":"uuid","description":"Assigned person identifier","example":"f79f13f9-1320-9010-f625-029985371800"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this edit"},"404":{"description":"The edit does not exist"}},"parameters":[{"in":"path","name":"edit_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the edit","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","example":true,"schema":{"type":"boolean"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/tasks?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/{edit_id}/preview-files":{"get":{"summary":"Get the previews of an edit","description":"Get the preview files of an edit. The response is a map of task type identifiers to lists of previews.","responses":{"200":{"description":"A map of task type identifiers to lists of previews","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Preview name","example":"edit_preview_01"},"original_name":{"type":"string","description":"Original file name","example":"edit_sequence.mov"},"file_path":{"type":"string","description":"File path","example":"/previews/edit/edit_preview_01.mov"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this edit"},"404":{"description":"The edit does not exist"}},"parameters":[{"in":"path","name":"edit_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the edit","schema":{"type":"string","format":"uuid"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/edits/{edit_id}/versions":{"get":{"summary":"Get the versions of an edit","description":"Get the saved versions of the data of an edit. Each version keeps the values of the edit at one time.","responses":{"200":{"description":"The list of versions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Version unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"edit_id":{"type":"string","format":"uuid","description":"Edit identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"version_number":{"type":"integer","description":"Version number","example":1},"data":{"type":"object","description":"Version data content","example":{"duration":120,"fps":24,"changes":"Added transitions"}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"created_by":{"type":"string","format":"uuid","description":"Creator person identifier","example":"c46c80c6-e097-6887-c292-79675204e470"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor without a task on this edit"},"404":{"description":"The edit does not exist"}},"parameters":[{"in":"path","name":"edit_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the edit","schema":{"type":"string","format":"uuid"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/versions\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/edits/a24a6ea4-ce75-4665-a070-57453082c25/versions\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/edits":{"get":{"summary":"Get the edits of an episode","description":"Get the edits of an episode. A vendor does not get the metadata columns that are hidden from vendors.","responses":{"200":{"description":"The list of edits","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Episode Edit"},"description":{"type":"string","description":"Edit description","example":"Main episode edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the episode","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","example":true,"schema":{"type":"boolean"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/edits?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/edits\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/episodes/{episode_id}/edit-tasks":{"get":{"summary":"Get the edit tasks of an episode","description":"Get the tasks of the edits of an episode. Vendors cannot use this route.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Episode Edit Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"assigned_to":{"type":"string","format":"uuid","description":"Assigned person identifier","example":"f79f13f9-1320-9010-f625-029985371800"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a vendor"},"404":{"description":"The episode does not exist"}},"parameters":[{"in":"path","name":"episode_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the episode","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each row","example":true,"schema":{"type":"boolean"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/edit-tasks?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/episodes/a24a6ea4-ce75-4665-a070-57453082c25/edit-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/edits":{"post":{"summary":"Create an edit","description":"Create an edit in a project. Give episode_id to put the edit in an episode. You must be a manager of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"data":{"type":"object","description":"Additional edit data","example":{"duration":120,"fps":24}},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier (optional)","example":"b35b7fb5-df86-5776-b181-68564193d360"}}}}}},"responses":{"201":{"description":"The new edit","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"data":{"type":"object","description":"Additional edit data","example":{"duration":120,"fps":24}},"created_by":{"type":"string","format":"uuid","description":"Creator person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager of the project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Opening Sequence\",\n  \"description\": \"Main opening sequence edit\",\n  \"data\": {\n    \"duration\": 120,\n    \"fps\": 24\n  },\n  \"episode_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Opening Sequence\",\n    \"description\": \"Main opening sequence edit\",\n    \"data\": {\n        \"duration\": 120,\n        \"fps\": 24\n    },\n    \"episode_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the edits of a project","description":"Get the edits of a project. A vendor gets only the edits of their assigned tasks, without the hidden metadata columns.","responses":{"200":{"description":"The list of edits","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Edit unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Edit name","example":"Opening Sequence"},"description":{"type":"string","description":"Edit description","example":"Main opening sequence edit"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"episode_id":{"type":"string","format":"uuid","description":"Episode identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project"},"404":{"description":"The project does not exist"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Edits"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/edits\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/search":{"post":{"summary":"Search entities","description":"Search the persons, the assets and the shots by name. The query must have 3 characters or more. Else, the response is an empty object. The search uses the open projects that you can access. Give project_id to search one project only. If you cannot access this project, the asset and shot lists are empty. A client does not get persons. A user who is not an administrator gets the minimal fields of each person. A vendor gets only the entities of their tasks, without the hidden metadata columns.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"Text to search, 3 characters or more","example":"chair"},"project_id":{"type":"string","format":"uuid","description":"Search only this project","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"limit":{"type":"integer","minimum":1,"default":3,"description":"Maximum number of results for each index"},"offset":{"type":"integer","minimum":0,"default":0,"description":"Number of results to skip in each index"},"index_names":{"type":"array","items":{"type":"string","enum":["assets","shots","persons"]},"default":["assets","shots","persons"],"description":"Indexes to search","example":["assets"]}}}}}},"responses":{"200":{"description":"The results of each index that you asked for","content":{"application/json":{"schema":{"type":"object","properties":{"persons":{"type":"array","items":{"type":"object"},"description":"Persons that match the query","example":[{"id":"a24a6ea4-ce75-4665-a070-57453082c250","first_name":"John","last_name":"Doe"}]},"assets":{"type":"array","items":{"type":"object"},"description":"Assets that match the query","example":[{"id":"b35b7fb5-df86-5776-b181-68564193d360","name":"Chair"}]},"shots":{"type":"array","items":{"type":"object"},"description":"Shots that match the query","example":[{"id":"c46c80c6-e097-6887-c292-79675204e470","name":"SH010"}]}}}}}},"400":{"description":"The body is not valid"}},"tags":["Search"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/search\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"query\": \"kitsu\",\n  \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n  \"limit\": 3,\n  \"offset\": 0,\n  \"index_names\": [\n    \"assets\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/search\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"query\": \"kitsu\",\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"limit\": 3,\n    \"offset\": 0,\n    \"index_names\": [\n        \"assets\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/concepts":{"get":{"summary":"Get concepts","description":"Get the concepts. Add a query parameter for each column to filter on. If you are not an administrator, you must give project_id.","responses":{"200":{"description":"The list of concepts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Concept name","example":"Character Design"},"description":{"type":"string","description":"Concept description","example":"Main character concept art"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"parent_id":{"type":"string","format":"uuid","description":"Parent concept identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the concepts of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"parent_id","required":false,"example":"b35b7fb5-df86-5776-b181-68564193d360","description":"Get only the concepts of this concept folder","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"assigned_to","required":false,"description":"With any value, get only the concepts that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/concepts?project_id=a24a6ea4-ce75-4665-a070-57453082c25&parent_id=b35b7fb5-df86-5776-b181-68564193d36\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\",\n    \"parent_id\": \"b35b7fb5-df86-5776-b181-68564193d36\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/concepts/with-tasks":{"get":{"summary":"Get concepts with their tasks","description":"Get the concepts with the tasks of each concept. Filter with project_id or id. The other columns are not filters on this route. If you are not an administrator, you must give project_id.","responses":{"200":{"description":"The list of concepts with their tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Concept name","example":"Character Design"},"description":{"type":"string","description":"Concept description","example":"Main character concept art"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"project_name":{"type":"string","description":"Project name","example":"My Animation Project"},"asset_type_name":{"type":"string","description":"Asset type name","example":"Character"},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"name":{"type":"string","description":"Task name","example":"Character Design Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"d57d91d7-f108-7998-d403-80786315f580"}}}},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"400":{"description":"An identifier is not a valid UUID"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"query","name":"project_id","required":false,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Get only the concepts of this project","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"assigned_to","required":false,"description":"With any value, get only the concepts that have a task assigned to you.","schema":{"type":"string"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/concepts/with-tasks?project_id=a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts/with-tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"project_id\": \"a24a6ea4-ce75-4665-a070-57453082c25\"\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/concepts/{concept_id}":{"get":{"summary":"Get a concept","description":"Get a concept with its related data.","responses":{"200":{"description":"The concept","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Concept name","example":"Character Design"},"description":{"type":"string","description":"Concept description","example":"Main character concept art"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}},"403":{"description":"You do not have access to this project, or you are a client"},"404":{"description":"The concept does not exist"}},"parameters":[{"in":"path","name":"concept_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the concept","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"delete":{"summary":"Delete a concept","description":"Delete a concept. The creator of the concept can delete it if the creator is in the project team. Other users must be managers of the project. If the concept has tasks, the concept is only marked as canceled. Use force=true to delete the concept and all its related data. Only a manager of the project can use force=true.","responses":{"204":{"description":"The concept is deleted"},"403":{"description":"You cannot delete this concept"},"404":{"description":"The concept does not exist"}},"parameters":[{"in":"path","name":"concept_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the concept to delete","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"force","required":false,"description":"Delete the concept and all its related data","example":false,"schema":{"type":"boolean"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X DELETE \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25?force=false\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"force\": false\n}\npayload = None\n\nresponse = requests.delete(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/concepts/{concept_id}/task-types":{"get":{"summary":"Get the task types of a concept","description":"Get the task types of the tasks of a concept.","responses":{"200":{"description":"The list of task types","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task type unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task type name","example":"Concept Art"},"short_name":{"type":"string","description":"Task type short name","example":"CON"},"color":{"type":"string","description":"Task type color code","example":"#FF5733"},"for_entity":{"type":"string","description":"Entity type this task type is for","example":"Concept"}}}}}}},"403":{"description":"You do not have access to this project, or you are a client"},"404":{"description":"The concept does not exist"}},"parameters":[{"in":"path","name":"concept_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the concept","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25/task-types\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25/task-types\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/concepts/{concept_id}/tasks":{"get":{"summary":"Get the tasks of a concept","description":"Get the tasks of a concept.","responses":{"200":{"description":"The list of tasks","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Task unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Task name","example":"Character Design Task"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"task_status_id":{"type":"string","format":"uuid","description":"Task status identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"entity_id":{"type":"string","format":"uuid","description":"Entity identifier","example":"e68e02e8-0219-8009-e514-918974260690"},"assigned_to":{"type":"string","format":"uuid","description":"Assigned person identifier","example":"f79f13f9-1320-9010-f625-029985371800"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a client"},"404":{"description":"The concept does not exist"}},"parameters":[{"in":"path","name":"concept_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the concept","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"relations","required":false,"description":"Add the related data to each task","example":true,"schema":{"type":"boolean"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25/tasks?relations=true\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25/tasks\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {\n    \"relations\": true\n}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/concepts/{concept_id}/preview-files":{"get":{"summary":"Get the previews of a concept","description":"Get the preview files of a concept. The response is a map of task type identifiers to lists of previews.","responses":{"200":{"description":"A map of task type identifiers to lists of previews","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Preview unique identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"name":{"type":"string","description":"Preview name","example":"concept_preview_01"},"original_name":{"type":"string","description":"Original file name","example":"character_concept.jpg"},"file_path":{"type":"string","description":"File path","example":"/previews/concept/concept_preview_01.jpg"},"task_type_id":{"type":"string","format":"uuid","description":"Task type identifier","example":"c46c80c6-e097-6887-c292-79675204e470"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"}}}}}}}},"403":{"description":"You do not have access to this project, or you are a client"},"404":{"description":"The concept does not exist"}},"parameters":[{"in":"path","name":"concept_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the concept","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/concepts/a24a6ea4-ce75-4665-a070-57453082c25/preview-files\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/concepts":{"post":{"summary":"Create a concept","description":"Create a concept in a project. You can put the concept in a concept folder with parent_id. If a concept with this name exists in the project, the route returns it.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Concept name","example":"Character Design"},"description":{"type":"string","description":"Concept description","example":"Main character concept art"},"data":{"type":"object","description":"Additional concept data","example":{"style":"realistic","mood":"heroic"}},"entity_concept_links":{"type":"array","items":{"type":"string","format":"uuid"},"description":"List of entity concept link identifiers","example":["b35b7fb5-df86-5776-b181-68564193d360","c46c80c6-e097-6887-c292-79675204e470"]},"parent_id":{"type":"string","format":"uuid","description":"Concept folder of the project to create the concept in","example":"e68e02e8-a219-8009-e514-91897426a691"}}}}}},"responses":{"201":{"description":"The new concept","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Concept name","example":"Character Design"},"description":{"type":"string","description":"Concept description","example":"Main character concept art"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"data":{"type":"object","description":"Additional concept data","example":{"style":"realistic","mood":"heroic"}},"created_by":{"type":"string","format":"uuid","description":"Creator person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"The body is not valid"},"403":{"description":"You do not have access to this project, or you are a client or a vendor"},"404":{"description":"The project or the concept folder does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X POST \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/concepts\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"name\": \"Character Design\",\n  \"description\": \"Main character concept art\",\n  \"data\": {\n    \"style\": \"realistic\",\n    \"mood\": \"heroic\"\n  },\n  \"entity_concept_links\": [\n    \"b35b7fb5-df86-5776-b181-68564193d36\",\n    \"c46c8gc6-eg97-6887-c292-79675204e47\"\n  ]\n}'"},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/concepts\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json\"\n}\nparams = {}\npayload = {\n    \"name\": \"Character Design\",\n    \"description\": \"Main character concept art\",\n    \"data\": {\n        \"style\": \"realistic\",\n        \"mood\": \"heroic\"\n    },\n    \"entity_concept_links\": [\n        \"b35b7fb5-df86-5776-b181-68564193d36\",\n        \"c46c8gc6-eg97-6887-c292-79675204e47\"\n    ]\n}\n\nresponse = requests.post(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]},"get":{"summary":"Get the concepts of a project","description":"Get the concepts of a project.","responses":{"200":{"description":"The list of concepts","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept unique identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"name":{"type":"string","description":"Concept name","example":"Character Design"},"description":{"type":"string","description":"Concept description","example":"Main character concept art"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"b35b7fb5-df86-5776-b181-68564193d360"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:30:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"],"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -X GET \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/concepts\" \\\n  -H \"Authorization: Bearer YOUR_API_TOKEN\" \\\n  -H \"Accept: application/json\""},{"lang":"python","label":"Python","source":"import requests\n\nurl = \"http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25/concepts\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_API_TOKEN\",\n    \"Accept\": \"application/json\"\n}\nparams = {}\npayload = None\n\nresponse = requests.get(\n    url,\n    headers=headers,\n    params=params,\n    json=payload\n)\n\nresponse.raise_for_status()\n\nif response.content:\n    print(response.json())"}]}},"/data/projects/{project_id}/concept-folders":{"post":{"summary":"Create a concept folder","description":"Create a concept folder in a project. If a folder already has this name, the route returns this folder. You must be a manager or a supervisor of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Concept folder name","example":"Characters"}}}}}},"responses":{"201":{"description":"The concept folder","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept folder unique identifier","example":"e68e02e8-a219-8009-e514-91897426a691"},"name":{"type":"string","description":"Concept folder name","example":"Characters"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_by":{"type":"string","format":"uuid","description":"Creator person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"The name is not valid"},"403":{"description":"You are not a manager or a supervisor of the project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"]},"get":{"summary":"Get the concept folders of a project","description":"Get the concept folders of a project, sorted by name. The parent_id of a concept is the identifier of its folder.","responses":{"200":{"description":"The list of concept folders","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept folder unique identifier","example":"e68e02e8-a219-8009-e514-91897426a691"},"name":{"type":"string","description":"Concept folder name","example":"Characters"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_by":{"type":"string","format":"uuid","description":"Creator person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}}},"403":{"description":"You do not have access to this project, or you are a client or a vendor"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"]}},"/data/concept-folders/{concept_folder_id}":{"delete":{"summary":"Delete a concept folder","description":"Delete a concept folder. The concepts of the folder are not deleted. They go back to the root of the project. You must be a manager or a supervisor of the project.","responses":{"204":{"description":"The concept folder is deleted"},"403":{"description":"You are not a manager or a supervisor of the project"},"404":{"description":"The concept folder does not exist"}},"parameters":[{"in":"path","name":"concept_folder_id","required":true,"example":"e68e02e8-a219-8009-e514-91897426a691","description":"Unique identifier of the concept folder","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"]},"put":{"summary":"Rename a concept folder","description":"Rename a concept folder. Two folders of a project cannot have the same name. You must be a manager or a supervisor of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Concept folder name","example":"Characters"}}}}}},"responses":{"200":{"description":"The renamed concept folder","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Concept folder unique identifier","example":"e68e02e8-a219-8009-e514-91897426a691"},"name":{"type":"string","description":"Concept folder name","example":"Characters"},"project_id":{"type":"string","format":"uuid","description":"Project identifier","example":"a24a6ea4-ce75-4665-a070-57453082c250"},"created_by":{"type":"string","format":"uuid","description":"Creator person identifier","example":"d57d91d7-f108-7998-d403-80786315f580"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","example":"2023-01-01T12:00:00Z"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","example":"2023-01-01T12:00:00Z"}}}}}},"400":{"description":"Another folder of the project has this name, or the name is not valid"},"403":{"description":"You are not a manager or a supervisor of the project"},"404":{"description":"The concept folder does not exist"}},"parameters":[{"in":"path","name":"concept_folder_id","required":true,"example":"e68e02e8-a219-8009-e514-91897426a691","description":"Unique identifier of the concept folder","schema":{"type":"string","format":"uuid"}}],"tags":["Concepts"]}},"/actions/projects/{project_id}/move-concepts":{"post":{"summary":"Move concepts to a concept folder","description":"Move concepts of a project to a concept folder of the project. If you do not give concept_folder_id, the concepts go back to the root of the project. The identifiers that are not concepts of the project are skipped. You must be a manager or a supervisor of the project.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["concept_ids"],"properties":{"concept_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Identifiers of the concepts to move","example":["b35b7fb5-df86-5776-b181-68564193d360","c46c80c6-e097-6887-c292-79675204e470"]},"concept_folder_id":{"type":"string","format":"uuid","description":"Concept folder to move the concepts to, none to move them back to the root of the project","example":"e68e02e8-a219-8009-e514-91897426a691"}}}}}},"responses":{"200":{"description":"The identifiers of the moved concepts","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"},"example":["b35b7fb5-df86-5776-b181-68564193d360","c46c80c6-e097-6887-c292-79675204e470"]}}}},"400":{"description":"The body is not valid"},"403":{"description":"You are not a manager or a supervisor of the project"},"404":{"description":"The concept folder does not exist in this project"}},"parameters":[{"in":"path","name":"project_id","required":true,"example":"a24a6ea4-ce75-4665-a070-57453082c250","description":"Unique identifier of the project","schema":{"type":"string","format":"uuid"}}],"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"}},"schemas":{"Asset":{"type":"object","properties":{"name":{"type":"string","description":"Name of asset"},"code":{"type":"string","description":"Utility field for the pipeline to identify the asset"},"description":{"type":"string","description":"Asset brief"},"canceled":{"type":"boolean","default":false,"description":"True if the asset has been delete one time, False otherwise"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"entity_type_id":{"type":"string","format":"uuid","description":"Asset type ID"},"source_id":{"type":"string","format":"uuid","description":"Field used to set the episode_id"},"preview_file_id":{"type":"string","format":"uuid","description":"ID of preview file used as thumbnail"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"}}},"AssetInstance":{"type":"object","properties":{"asset_id":{"type":"string","format":"uuid","description":"Instantiated asset"},"name":{"type":"string"},"number":{"type":"integer"},"description":{"type":"string"},"active":{"type":"boolean","default":true},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"scene_id":{"type":"string","format":"uuid","description":"Target scene"},"target_asset_id":{"type":"string","format":"uuid","description":"Use when instantiating an asset in an asset is required"}}},"AssetType":{"type":"object","properties":{"name":{"type":"string"}}},"AttachmentFile":{"type":"object","properties":{"name":{"type":"string","description":"Name of attachment file"},"size":{"type":"integer","description":"Size of attachment file"},"extension":{"type":"string","description":"Extension of attachment file"},"mimetype":{"type":"string"},"comment_id":{"type":"string","format":"uuid","description":"Comment to which the file is attached"}}},"BuildJob":{"type":"object","properties":{"status":{"type":"string","description":"Status of build job (running, failed, succeeded)"},"job_type":{"type":"string","description":"Type of build job (archive, movie)"},"ended_at":{"type":"string","format":"date-time"},"message":{"type":"string","description":"Explains a degraded or failed build"},"playlist_id":{"type":"string","format":"uuid","description":"Playlist ID"}}},"Comment":{"type":"object","properties":{"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"object_id":{"type":"string","format":"uuid","description":"Unique ID of the commented model instance"},"object_type":{"type":"string","description":"Model type of the comment model instance"},"text":{"type":"string"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"replies":{"type":"string","format":"json","default":"[]"},"checklist":{"type":"string","format":"json"},"pinned":{"type":"boolean"},"task_status_id":{"type":"string","format":"uuid","description":"Task status attached to comment"},"person_id":{"type":"string","format":"uuid","description":"The person who publishes the comment"},"preview_file_id":{"type":"string","format":"uuid","description":"ID of preview file used as thumbnail"}}},"CustomAction":{"type":"object","properties":{"name":{"type":"string","description":"Name of custom action"},"url":{"type":"string"},"entity_type":{"type":"string","default":"all"},"is_ajax":{"type":"boolean","default":false,"description":"True if the custom action is ajax, False otherwise"}}},"DataImportError":{"type":"object","properties":{"event_data":{"type":"string","format":"json","description":"JSON field to add event data"},"source":{"type":"array","items":{"type":"string","enum":["csv","shotgun"]}}}},"DayOff":{"type":"object","properties":{"date":{"type":"string","format":"date"},"person_id":{"type":"string","format":"uuid","description":"The person who will take the day off"}}},"Department":{"type":"object","properties":{"name":{"type":"string","description":"Name of department"},"color":{"type":"string","description":"Color of department"},"archived":{"type":"boolean","description":"True if the department is archived else False"}}},"DesktopLoginLog":{"type":"object","properties":{"date":{"type":"string","format":"date"},"person_id":{"type":"string","format":"uuid","description":"Person ID"}}},"Episode":{"type":"object","properties":{"name":{"type":"string","description":"Name of episode"},"code":{"type":"string","description":"Utility field for the pipeline to identify the episode"},"description":{"type":"string","description":"Episode brief"},"canceled":{"type":"boolean","default":false,"description":"True if the episode has been delete one time, False otherwise"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"source_id":{"type":"string","format":"uuid","description":"Field used to set the episode_id"},"preview_file_id":{"type":"string","format":"uuid","description":"ID of preview file used as thumbnail"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"}}},"Event":{"type":"object","properties":{"name":{"type":"string","description":"Name of event"},"user_id":{"type":"string","format":"uuid","description":"The user who made the action that emitted the event"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"}}},"FileStatus":{"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string"}}},"LoginLog":{"type":"object","properties":{"origin":{"type":"string","description":"web, script"},"ip_address":{"type":"string","description":"IP address of device used to login"},"person_id":{"type":"string","format":"uuid","description":"Person ID"}}},"Metadata":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid","description":"ID of project for which metadata are added"},"entity_type":{"type":"string","description":"Asset or Shot"},"name":{"type":"string","description":"Field name for GUI"},"field_name":{"type":"string","description":"Technical field name"},"choices":{"type":"string","format":"json","description":"Array of string that represents the available values for this metadata (this metadata is considered as a free field if this array is empty)"},"for_client":{"type":"boolean"}}},"Milestone":{"type":"object","properties":{"data":{"type":"string","format":"date","description":"Milestone date of production schedule"},"name":{"type":"string","description":"Name of milestone"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","nullable":true,"description":"Label color as a #RRGGBB hex string","example":"#ff0000"},"milestone_type":{"type":"string","enum":["kickoff","review","approval","delivery","other"],"default":"other","description":"Kind of milestone"},"task_type_id":{"type":"string","format":"uuid","description":"Task type ID"},"department_id":{"type":"string","format":"uuid","nullable":true,"description":"Department ID"},"project_id":{"type":"string","format":"uuid","description":"Project ID"}}},"News":{"type":"object","properties":{"change":{"type":"boolean","default":false},"author_id":{"type":"string","format":"uuid","description":"Person who wrote the comment"},"comment_id":{"type":"string","format":"uuid","description":"Posted comment ID"},"task_id":{"type":"string","format":"uuid","description":"Task ID"},"preview_file_id":{"type":"string","format":"uuid","description":"Preview file ID"}}},"Notification":{"type":"object","properties":{"read":{"type":"boolean","description":"True if user read it, False otherwise"},"change":{"type":"boolean","description":"True if there is status change related to this status, False otherwise"},"person_id":{"type":"string","format":"uuid","description":"The user to who the notification is aimed at"},"author_id":{"type":"string","format":"uuid","description":"Author of the event to notify"},"comment_id":{"type":"string","format":"uuid","description":"Comment related to the notification, if there is any"},"task_id":{"type":"string","format":"uuid","description":"Task related to the notification, if there is any"},"reply_id":{"type":"string","format":"uuid","description":"Reply related to notification"},"type":{"type":"string","description":"Type of notification"}}},"Organisation":{"type":"object","properties":{"name":{"type":"string","description":"Name of organisation"},"hours_by_day":{"type":"number"},"has_avatar":{"type":"boolean","default":false,"description":"True if the organisation has an avatar, False otherwise"},"use_original_file_name":{"type":"boolean","default":false,"description":"True if the organisation uses original file names, False otherwise"},"timesheets_locked":{"type":"boolean","default":false,"description":"True if the organisation's timesheets are locked, False otherwise"},"hd_by_default":{"type":"boolean","default":false},"chat_token_slack":{"type":"string"},"chat_webhook_mattermost":{"type":"string"},"chat_token_discord":{"type":"string"}}},"OutputFile":{"type":"object","properties":{"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"name":{"type":"string","description":"Name of output file"},"extension":{"type":"string","description":"Extension of output file"},"description":{"type":"string","description":"Output file brief"},"comment":{"type":"string","description":"Comment on output file"},"revision":{"type":"integer","description":"Revision number of output file"},"size":{"type":"integer","description":"Size of output file"},"checksum":{"type":"string","description":"Checksum of output file"},"source":{"type":"string","description":"Created by a script, a webgui or a desktop gui"},"path":{"type":"string","description":"File path on the production hard drive"},"representation":{"type":"string","description":"Precise what kind of output it is (abc, jpgs, pngs, etc.)"},"nb_elements":{"type":"integer","default":1,"description":"For image sequence"},"canceled":{"type":"boolean"},"file_status_id":{"type":"string","format":"uuid","description":"File status ID"},"entity_id":{"type":"string","format":"uuid","description":"Asset or Shot concerned by the output file"},"asset_instance_id":{"type":"string","format":"uuid","description":"Asset instance ID"},"output_type_id":{"type":"string","format":"uuid","description":"Type of output (geometry, cache, etc.)"},"task_type_id":{"type":"string","format":"uuid","description":"Task type related to this output file (modeling, animation, etc.)"},"person_id":{"type":"string","format":"uuid","description":"Author of the file"},"source_file_id":{"type":"string","format":"uuid","description":"Working file that led to create this output file"},"temporal_entity_id":{"type":"string","format":"uuid","description":"Shot, scene or sequence needed for output files related to an asset instance"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"}}},"OutputType":{"type":"object","properties":{"name":{"type":"string"},"short_name":{"type":"string"}}},"Person":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string","description":"Serve as login"},"phone":{"type":"string"},"active":{"type":"boolean","description":"True if the person is still in the studio, False otherwise"},"last_presence":{"type":"string","format":"date","description":"Last time the person worked for the studio"},"password":{"type":"string","format":"byte"},"desktop_login":{"type":"string","description":"Login used on desktop"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"timezone":{"type":"string"},"locale":{"type":"string"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"role":{"type":"string","default":"user"},"has_avatar":{"type":"boolean","default":false,"description":"True if user has an avatar, False otherwise"},"notifications_enabled":{"type":"boolean"},"notifications_slack_enabled":{"type":"boolean"},"notifications_slack_userid":{"type":"string"},"notifications_mattermost_enabled":{"type":"boolean"},"notifications_mattermost_userid":{"type":"string"},"notifications_discord_enabled":{"type":"boolean"},"notifications_discord_userid":{"type":"string"}}},"Playlist":{"type":"object","properties":{"name":{"type":"string","description":"Name of playlist"},"shots":{"type":"string","format":"json","description":"JSON field describing shot and preview listed in"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"episode_id":{"type":"string","format":"uuid","description":"Episode ID"},"for_client":{"type":"boolean","default":false},"for_entity":{"type":"string","default":"shot"},"is_for_all":{"type":"boolean","default":false},"task_type_id":{"type":"string","format":"uuid","description":"Task type ID"}}},"PreviewFile":{"type":"object","properties":{"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"name":{"type":"string","description":"Name of preview file"},"original_name":{"type":"string","description":"Original name of preview file"},"revision":{"type":"integer","default":1,"description":"Revision number of preview file"},"position":{"type":"integer","default":1,"description":"Position of preview file"},"extension":{"type":"string","description":"Extension of preview file"},"description":{"type":"string","description":"Preview file brief"},"path":{"type":"string","description":"File path on the production hard drive"},"source":{"type":"string","description":"Created by a script, a webgui or a desktop gui"},"file_size":{"type":"integer","default":0,"description":"Size of output file"},"comment":{"type":"string","description":"Comment on output file"},"checksum":{"type":"string","description":"Checksum of output file"},"representation":{"type":"string","description":"Precise what kind of output it is (abc, jpgs, pngs, etc.)"},"nb_elements":{"type":"integer","default":1,"description":"For image sequence"},"canceled":{"type":"boolean"},"file_status_id":{"type":"string","format":"uuid","description":"File status ID"},"entity_id":{"type":"string","format":"uuid","description":"Asset or Shot concerned by the output file"},"asset_instance_id":{"type":"string","format":"uuid","description":"Asset instance ID"},"output_type_id":{"type":"string","format":"uuid","description":"Type of output (geometry, cache, etc.)"},"task_type_id":{"type":"string","format":"uuid","description":"Task type related to this output file (modeling, animation, etc.)"},"person_id":{"type":"string","format":"uuid","description":"Author of the file"},"source_file_id":{"type":"string","format":"uuid","description":"Working file that led to create this output file"},"temporal_entity_id":{"type":"string","format":"uuid","description":"Shot, scene or sequence needed for output files related to an asset instance"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"}}},"Project":{"type":"object","properties":{"name":{"type":"string","description":"Name of project"},"code":{"type":"string","description":"Utility field for the pipeline to identify the project"},"description":{"type":"string","description":"Project brief"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"file_tree":{"type":"string","format":"json","description":"Templates to use to build file paths"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"project_status_id":{"type":"string","format":"uuid","description":"Project status ID"},"has_avatar":{"type":"boolean","default":false,"description":"True if the project has an avatar, False otherwise"},"fps":{"type":"string","description":"Frames per second"},"ratio":{"type":"string"},"resolution":{"type":"string"},"production_type":{"type":"string","description":"short, featurefilm or tvshow","default":"short"},"end_date":{"type":"string","format":"date"},"start_date":{"type":"string","format":"date"},"man_days":{"type":"integer","description":"Estimated number of working days to complete the project"},"nb_episodes":{"type":"integer","default":0},"episode_span":{"type":"integer","default":0},"max_retakes":{"type":"integer","default":0},"is_clients_isolated":{"type":"boolean","default":false,"description":"True if the clients are isolated from the project, False otherwise"},"is_client_stats_visible":{"type":"boolean","default":true},"is_client_task_list_visible":{"type":"boolean","default":true},"is_client_task_panel_visible":{"type":"boolean","default":true}}},"ProjectStatus":{"type":"object","properties":{"name":{"type":"string"},"color":{"type":"string"}}},"ScheduleItem":{"type":"object","properties":{"start_date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date"},"man_days":{"type":"integer"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"task_type_id":{"type":"string","format":"uuid","description":"Task type ID"},"object_id":{"type":"string","format":"uuid","description":"Object ID"}}},"SearchFilter":{"type":"object","properties":{"list_type":{"type":"string","description":"Type of list"},"entity_type":{"type":"string","description":"Type of entity"},"name":{"type":"string","description":"Name of search filter"},"search_query":{"type":"string"},"person_id":{"type":"string","format":"uuid","description":"Person ID"},"project_id":{"type":"string","format":"uuid","description":"Project ID"}}},"Sequence":{"type":"object","properties":{"name":{"type":"string","description":"Name of sequence"},"code":{"type":"string","description":"Utility field for the pipeline to identify the sequence"},"description":{"type":"string","description":"Sequence brief"},"canceled":{"type":"boolean","default":false,"description":"True if the sequence has been delete one time, False otherwise"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"parent_id":{"type":"string","format":"uuid","description":"Episode ID"},"source_id":{"type":"string","format":"uuid","description":"Field used to set the episode_id"},"preview_file_id":{"type":"string","format":"uuid","description":"ID of preview file used as thumbnail"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"}}},"Shot":{"type":"object","properties":{"name":{"type":"string","description":"Name of shot"},"code":{"type":"string","description":"Utility field for the pipeline to identify the shot"},"description":{"type":"string","description":"Shot brief"},"canceled":{"type":"boolean","default":false,"description":"True if the shot has been delete one time, False otherwise"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"parent_id":{"type":"string","format":"uuid","description":"Episode ID"},"entity_type_id":{"type":"string","format":"uuid","description":"Shot type ID"},"source_id":{"type":"string","format":"uuid","description":"Field used to set the episode_id"},"preview_file_id":{"type":"string","format":"uuid","description":"ID of preview file used as thumbnail"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"}}},"Software":{"type":"object","properties":{"name":{"type":"string","description":"Name of software"},"short_name":{"type":"string","description":"Short name of software"},"file_extension":{"type":"string","description":"Main extension used for this software's files"},"secondary_extensions":{"type":"string","format":"json","description":"Other extensions used for this software's files"}}},"StatusAutomation":{"type":"object","properties":{"entity_type":{"type":"string","default":"asset","description":"Entity type (asset, shot, sequence, episode, edit)"},"in_conditions":{"type":"object","nullable":true,"additionalProperties":false,"required":["operator","conditions"],"description":"Trigger. The automation fires when a comment changes a task status and turns this group from false to true. A condition is met when every task of its task type on the entity has one of its statuses, and a condition on a task type the entity has no task of is ignored. With a status output, a condition on a task type after the output in the production never starts the automation: under and it still has to be met, under or it is left out.","properties":{"operator":{"type":"string","enum":["and","or"]},"conditions":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["task_type_id","task_status_ids"],"properties":{"task_type_id":{"type":"string","format":"uuid","description":"Task type of the automation entity type"},"task_status_ids":{"type":"array","minItems":1,"items":{"type":"string","format":"uuid"},"description":"Statuses meeting the condition"}}}}}},"in_task_type_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Task type of a trigger made of one condition with one status, null otherwise. Writing the pair sets such a trigger, which is refused on an automation whose trigger has several conditions or statuses."},"in_task_status_id":{"type":"string","format":"uuid","nullable":true,"deprecated":true,"description":"Status of a trigger made of one condition with one status, null otherwise. See in_task_type_id."},"out_field_type":{"type":"string","description":"Field type (status, ready_for)"},"out_task_type_id":{"type":"string","format":"uuid","description":"Task type ID"},"out_task_status_id":{"type":"string","format":"uuid","nullable":true,"description":"Task status ID, null with a ready for output"},"out_only_if_task_status_ids":{"type":"array","nullable":true,"items":{"type":"string","format":"uuid"},"description":"Status changes only: the change applies when the target task is in one of these statuses. Empty or null means always."},"import_last_revision":{"type":"boolean","description":"Attach the last revision of a trigger task to the change: the task of the first condition the entity has with and, the commented task with or"},"archived":{"type":"boolean"}}},"SubscriptionToNotifications":{"type":"object","properties":{"person_id":{"type":"string","format":"uuid","description":"Person ID"},"task_id":{"type":"string","format":"uuid","description":"Task ID"},"entity_id":{"type":"string","format":"uuid","description":"Entity ID"},"task_type_id":{"type":"string","format":"uuid","description":"Task type ID"}}},"Studio":{"type":"object","properties":{"name":{"type":"string","description":"Name of studio"},"color":{"type":"string","description":"Color of studio"},"archived":{"type":"boolean","description":"True if the studio is archived else False"}}},"Task":{"type":"object","properties":{"name":{"type":"string","description":"Name of task"},"description":{"type":"string","description":"Task brief"},"priority":{"type":"integer","default":0,"description":"Priority of task"},"duration":{"type":"number","default":0,"description":"Duration of task"},"estimation":{"type":"number","default":0,"description":"Estimation of duration of task"},"completion_rate":{"type":"integer","default":0,"description":"Completion rate of task"},"retake_count":{"type":"integer","default":0,"description":"Retake count of task"},"sort_order":{"type":"integer","default":0,"description":"Sort order of task"},"start_date":{"type":"string","format":"date-time"},"due_date":{"type":"string","format":"date-time"},"real_start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"last_comment_date":{"type":"string","format":"date-time"},"nb_assets_ready":{"type":"integer","default":0,"description":"Number of assets ready"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"project_id":{"type":"string","format":"uuid","description":"Project ID"},"task_type_id":{"type":"string","format":"uuid","description":"Task type ID"},"task_status_id":{"type":"string","format":"uuid","description":"Task status ID"},"entity_id":{"type":"string","format":"uuid","description":"Entity ID"},"assigner_id":{"type":"string","format":"uuid","description":"Person ID"}}},"TaskStatus":{"type":"object","properties":{"name":{"type":"string","description":"Name of task status"},"short_name":{"type":"string","description":"Short name of task status"},"color":{"type":"string"},"is_done":{"type":"boolean","default":false,"description":"True if the task is done, False otherwise"},"is_artist_allowed":{"type":"boolean","default":true,"description":"True if the artist is allowed, False otherwise"},"is_client_allowed":{"type":"boolean","default":true,"description":"True if the client is allowed, False otherwise"},"is_retake":{"type":"boolean","default":false,"description":"True if the task was retaken, False otherwise"},"is_feedback_request":{"type":"boolean","default":false,"description":"True if feedback was requested, False otherwise"},"is_default":{"type":"boolean","default":false,"description":"True if the task is default, False otherwise"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"}}},"TaskType":{"type":"object","properties":{"name":{"type":"string","description":"Name of task type"},"short_name":{"type":"string","description":"Short name of task type"},"color":{"type":"string","default":"#FFFFFF"},"priority":{"type":"integer","default":1,"description":"Priority of task type"},"for_entity":{"type":"string","default":"Asset"},"allow_timelog":{"type":"boolean","default":true,"description":"True if timelog is allowed, False otherwise"},"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"department_id":{"type":"string","format":"uuid","description":"Department ID"}}},"TimeSpent":{"type":"object","properties":{"duration":{"type":"number"},"date":{"type":"string","format":"date"},"task_id":{"type":"string","format":"uuid","description":"Related task ID"},"person_id":{"type":"string","format":"uuid","description":"The person who performed the working time"}}},"WorkingFile":{"type":"object","properties":{"shotgun_id":{"type":"integer","description":"Used for synchronization with a Shotgun instance"},"name":{"type":"string","description":"Name of working file"},"description":{"type":"string","description":"working file brief"},"comment":{"type":"string","description":"Comment on working file"},"revision":{"type":"integer","description":"Revision number of working file"},"size":{"type":"integer","description":"Size of working file"},"checksum":{"type":"string","description":"Checksum of working file"},"path":{"type":"string","description":"File path on the production hard drive"},"data":{"type":"string","format":"json","description":"Free JSON field to add metadata"},"task_id":{"type":"string","format":"uuid","description":"Task for which the working file is made"},"entity_id":{"type":"string","format":"uuid","description":"Entity for which the working is made"},"person_id":{"type":"string","format":"uuid","description":"Author of the file"},"software_id":{"type":"string","format":"uuid","description":"Software used to build this working file"}}}}},"openapi":"3.0.2","externalDocs":{"description":"Read the installation documentation","url":"https://zou.cg-wire.com"},"servers":[{"url":"/api"}],"security":[{"JWT Authorization":[]}],"tags":[{"name":"Authentication","description":"User authentication, login, logout, and session management"},{"name":"Assets","description":"Production asset management including 3D models, textures, and media files.\n\n```json\nAsset {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of asset\"\n    },\n    \"code\": {\n      \"type\": \"string\",\n      \"description\": \"Utility field for the pipeline to identify the asset\"\n    },\n    \"description\": {\n      \"type\": \"string\",\n      \"description\": \"Asset brief\"\n    },\n    \"canceled\": {\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"description\": \"True if the asset has been delete one time, False otherwise\"\n    },\n    \"project_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project ID\"\n    },\n    \"entity_type_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Asset type ID\"\n    },\n    \"source_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Field used to set the episode_id\"\n    },\n    \"preview_file_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"ID of preview file used as thumbnail\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    },\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    }\n  }\n}\n```"},{"name":"Breakdown","description":"Shot breakdown management and asset-to-shot relationships"},{"name":"Chat","description":"Real-time messaging and communication features"},{"name":"Comments","description":"Task comments, feedback, and collaboration tools.\n\n```json\nComment {\n  \"type\": \"object\",\n  \"properties\": {\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    },\n    \"object_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Unique ID of the commented model instance\"\n    },\n    \"object_type\": {\n      \"type\": \"string\",\n      \"description\": \"Model type of the comment model instance\"\n    },\n    \"text\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    },\n    \"replies\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"default\": \"[]\"\n    },\n    \"checklist\": {\n      \"type\": \"string\",\n      \"format\": \"json\"\n    },\n    \"pinned\": {\n      \"type\": \"boolean\"\n    },\n    \"task_status_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Task status attached to comment\"\n    },\n    \"person_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"The person who publishes the comment\"\n    },\n    \"preview_file_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"ID of preview file used as thumbnail\"\n    }\n  }\n}\n```"},{"name":"Concepts","description":"Concept art and design asset management"},{"name":"Crud","description":"Generic CRUD operations for various data models"},{"name":"Departments","description":"Department management and organizational structure.\n\n```json\nDepartment {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of department\"\n    },\n    \"color\": {\n      \"type\": \"string\",\n      \"description\": \"Color of department\"\n    },\n    \"archived\": {\n      \"type\": \"boolean\",\n      \"description\": \"True if the department is archived else False\"\n    }\n  }\n}\n```"},{"name":"Edits","description":"Edit management for post-production workflows"},{"name":"Entities","description":"Generic entity management and relationships"},{"name":"Events","description":"Event streaming and real-time notifications.\n\n```json\nEvent {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of event\"\n    },\n    \"user_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"The user who made the action that emitted the event\"\n    },\n    \"project_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project ID\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    }\n  }\n}\n```"},{"name":"Export","description":"Data export functionality for reports and integrations"},{"name":"Files","description":"File management, uploads, and storage operations"},{"name":"Import","description":"Data import from external sources and file formats"},{"name":"Index","description":"System status, health checks, and configuration"},{"name":"News","description":"Production news feed and activity tracking"},{"name":"Persons","description":"User and team member management.\n\n```json\nPerson {\n  \"type\": \"object\",\n  \"properties\": {\n    \"first_name\": {\n      \"type\": \"string\"\n    },\n    \"last_name\": {\n      \"type\": \"string\"\n    },\n    \"email\": {\n      \"type\": \"string\",\n      \"description\": \"Serve as login\"\n    },\n    \"phone\": {\n      \"type\": \"string\"\n    },\n    \"active\": {\n      \"type\": \"boolean\",\n      \"description\": \"True if the person is still in the studio, False otherwise\"\n    },\n    \"last_presence\": {\n      \"type\": \"string\",\n      \"format\": \"date\",\n      \"description\": \"Last time the person worked for the studio\"\n    },\n    \"password\": {\n      \"type\": \"string\",\n      \"format\": \"byte\"\n    },\n    \"desktop_login\": {\n      \"type\": \"string\",\n      \"description\": \"Login used on desktop\"\n    },\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    },\n    \"timezone\": {\n      \"type\": \"string\"\n    },\n    \"locale\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    },\n    \"role\": {\n      \"type\": \"string\",\n      \"default\": \"user\"\n    },\n    \"has_avatar\": {\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"description\": \"True if user has an avatar, False otherwise\"\n    },\n    \"notifications_enabled\": {\n      \"type\": \"boolean\"\n    },\n    \"notifications_slack_enabled\": {\n      \"type\": \"boolean\"\n    },\n    \"notifications_slack_userid\": {\n      \"type\": \"string\"\n    },\n    \"notifications_mattermost_enabled\": {\n      \"type\": \"boolean\"\n    },\n    \"notifications_mattermost_userid\": {\n      \"type\": \"string\"\n    },\n    \"notifications_discord_enabled\": {\n      \"type\": \"boolean\"\n    },\n    \"notifications_discord_userid\": {\n      \"type\": \"string\"\n    }\n  }\n}\n```"},{"name":"Playlists","description":"Media playlists and review sessions. \n\n```json\nPlaylist {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of playlist\"\n    },\n    \"shots\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"JSON field describing shot and preview listed in\"\n    },\n    \"project_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project ID\"\n    },\n    \"episode_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Episode ID\"\n    },\n    \"for_client\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"for_entity\": {\n      \"type\": \"string\",\n      \"default\": \"shot\"\n    },\n    \"is_for_all\": {\n      \"type\": \"boolean\",\n      \"default\": false\n    },\n    \"task_type_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Task type ID\"\n    }\n  }\n}\n```"},{"name":"Previews","description":"Preview generation and thumbnail management. \n\n```json\nPreviewFile {\n  \"type\": \"object\",\n  \"properties\": {\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    },\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of preview file\"\n    },\n    \"original_name\": {\n      \"type\": \"string\",\n      \"description\": \"Original name of preview file\"\n    },\n    \"revision\": {\n      \"type\": \"integer\",\n      \"default\": 1,\n      \"description\": \"Revision number of preview file\"\n    },\n    \"position\": {\n      \"type\": \"integer\",\n      \"default\": 1,\n      \"description\": \"Position of preview file\"\n    },\n    \"extension\": {\n      \"type\": \"string\",\n      \"description\": \"Extension of preview file\"\n    },\n    \"description\": {\n      \"type\": \"string\",\n      \"description\": \"Preview file brief\"\n    },\n    \"path\": {\n      \"type\": \"string\",\n      \"description\": \"File path on the production hard drive\"\n    },\n    \"source\": {\n      \"type\": \"string\",\n      \"description\": \"Created by a script, a webgui or a desktop gui\"\n    },\n    \"file_size\": {\n      \"type\": \"integer\",\n      \"default\": 0,\n      \"description\": \"Size of output file\"\n    },\n    \"comment\": {\n      \"type\": \"string\",\n      \"description\": \"Comment on output file\"\n    },\n    \"checksum\": {\n      \"type\": \"string\",\n      \"description\": \"Checksum of output file\"\n    },\n    \"representation\": {\n      \"type\": \"string\",\n      \"description\": \"Precise what kind of output it is (abc, jpgs, pngs, etc.)\"\n    },\n    \"nb_elements\": {\n      \"type\": \"integer\",\n      \"default\": 1,\n      \"description\": \"For image sequence\"\n    },\n    \"canceled\": {\n      \"type\": \"boolean\"\n    },\n    \"file_status_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"File status ID\"\n    },\n    \"entity_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Asset or Shot concerned by the output file\"\n    },\n    \"asset_instance_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Asset instance ID\"\n    },\n    \"output_type_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Type of output (geometry, cache, etc.)\"\n    },\n    \"task_type_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Task type related to this output file (modeling, animation, etc.)\"\n    },\n    \"person_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Author of the file\"\n    },\n    \"source_file_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Working file that led to create this output file\"\n    },\n    \"temporal_entity_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Shot, scene or sequence needed for output files related to an asset instance\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    }\n  }\n}\n```"},{"name":"Projects","description":"Project management and production organization.\n\n```json\nProject {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of project\"\n    },\n    \"code\": {\n      \"type\": \"string\",\n      \"description\": \"Utility field for the pipeline to identify the project\"\n    },\n    \"description\": {\n      \"type\": \"string\",\n      \"description\": \"Project brief\"\n    },\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    },\n    \"file_tree\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Templates to use to build file paths\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    },\n    \"project_status_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project status ID\"\n    },\n    \"has_avatar\": {\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"description\": \"True if the project has an avatar, False otherwise\"\n    },\n    \"fps\": {\n      \"type\": \"string\",\n      \"description\": \"Frames per second\"\n    },\n    \"ratio\": {\n      \"type\": \"string\"\n    },\n    \"resolution\": {\n      \"type\": \"string\"\n    },\n    \"production_type\": {\n      \"type\": \"string\",\n      \"description\": \"short, featurefilm or tvshow\",\n      \"default\": \"short\"\n    },\n    \"end_date\": {\n      \"type\": \"string\",\n      \"format\": \"date\"\n    },\n    \"start_date\": {\n      \"type\": \"string\",\n      \"format\": \"date\"\n    },\n    \"man_days\": {\n      \"type\": \"integer\",\n      \"description\": \"Estimated number of working days to complete the project\"\n    },\n    \"nb_episodes\": {\n      \"type\": \"integer\",\n      \"default\": 0\n    },\n    \"episode_span\": {\n      \"type\": \"integer\",\n      \"default\": 0\n    },\n    \"max_retakes\": {\n      \"type\": \"integer\",\n      \"default\": 0\n    },\n    \"is_clients_isolated\": {\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"description\": \"True if the clients are isolated from the project, False otherwise\"\n    },\n    \"is_client_stats_visible\": {\n      \"type\": \"boolean\",\n      \"default\": true\n    },\n    \"is_client_task_list_visible\": {\n      \"type\": \"boolean\",\n      \"default\": true\n    },\n    \"is_client_task_panel_visible\": {\n      \"type\": \"boolean\",\n      \"default\": true\n    }\n  }\n}\n```"},{"name":"Search","description":"Search functionality across all production data.\n\n```json\nSearchFilter {\n  \"type\": \"object\",\n  \"properties\": {\n    \"list_type\": {\n      \"type\": \"string\",\n      \"description\": \"Type of list\"\n    },\n    \"entity_type\": {\n      \"type\": \"string\",\n      \"description\": \"Type of entity\"\n    },\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of search filter\"\n    },\n    \"search_query\": {\n      \"type\": \"string\"\n    },\n    \"person_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Person ID\"\n    },\n    \"project_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project ID\"\n    }\n  }\n}\n```"},{"name":"Shots","description":"Shot management, sequences, and episodes.\n\n```json\nShot {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of shot\"\n    },\n    \"code\": {\n      \"type\": \"string\",\n      \"description\": \"Utility field for the pipeline to identify the shot\"\n    },\n    \"description\": {\n      \"type\": \"string\",\n      \"description\": \"Shot brief\"\n    },\n    \"canceled\": {\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"description\": \"True if the shot has been delete one time, False otherwise\"\n    },\n    \"project_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project ID\"\n    },\n    \"parent_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Episode ID\"\n    },\n    \"entity_type_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Shot type ID\"\n    },\n    \"source_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Field used to set the episode_id\"\n    },\n    \"preview_file_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"ID of preview file used as thumbnail\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    },\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    }\n  }\n}\n```"},{"name":"Tasks","description":"Task management, assignments, and progress tracking.\n\n```json\nTask {\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"Name of task\"\n    },\n    \"description\": {\n      \"type\": \"string\",\n      \"description\": \"Task brief\"\n    },\n    \"priority\": {\n      \"type\": \"integer\",\n      \"default\": 0,\n      \"description\": \"Priority of task\"\n    },\n    \"duration\": {\n      \"type\": \"number\",\n      \"default\": 0,\n      \"description\": \"Duration of task\"\n    },\n    \"estimation\": {\n      \"type\": \"number\",\n      \"default\": 0,\n      \"description\": \"Estimation of duration of task\"\n    },\n    \"completion_rate\": {\n      \"type\": \"integer\",\n      \"default\": 0,\n      \"description\": \"Completion rate of task\"\n    },\n    \"retake_count\": {\n      \"type\": \"integer\",\n      \"default\": 0,\n      \"description\": \"Retake count of task\"\n    },\n    \"sort_order\": {\n      \"type\": \"integer\",\n      \"default\": 0,\n      \"description\": \"Sort order of task\"\n    },\n    \"start_date\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"due_date\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"real_start_date\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"end_date\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"last_comment_date\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"nb_assets_ready\": {\n      \"type\": \"integer\",\n      \"default\": 0,\n      \"description\": \"Number of assets ready\"\n    },\n    \"data\": {\n      \"type\": \"string\",\n      \"format\": \"json\",\n      \"description\": \"Free JSON field to add metadata\"\n    },\n    \"shotgun_id\": {\n      \"type\": \"integer\",\n      \"description\": \"Used for synchronization with a Shotgun instance\"\n    },\n    \"project_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Project ID\"\n    },\n    \"task_type_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Task type ID\"\n    },\n    \"task_status_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Task status ID\"\n    },\n    \"entity_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Entity ID\"\n    },\n    \"assigner_id\": {\n      \"type\": \"string\",\n      \"format\": \"uuid\",\n      \"description\": \"Person ID\"\n    }\n  }\n}\n```"},{"name":"User","description":"User-specific data and personal workspace management"}]}