Developer docs · Problems
Project type disallows
HTTP 422 · https://impartire.com/problems/project-type-disallows
What it means
The project's type does not allow this (a playlist in a project whose type has playlists turned off). Pick another project, or change the type's settings in the app.
What to do
Pick a project whose type allows playlists (an untyped project always does; GET /api/v1/projects shows each project_type), or turn playlists on for the type in the app under Projects → Project Types.
Example
Sent as application/problem+json with status 422. detail varies with the request; branch on type.
{
"type": "https://impartire.com/problems/project-type-disallows",
"title": "Project type disallows",
"status": 422,
"detail": "Project 66b0c1d2-3e4f-4a5b-8c6d-7e8f9a0b1c2d's type does not allow playlists. Pick a project whose type allows them, or turn playlists on for the type in the app.",
"instance": "/api/v1/playlists",
"request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M",
"errors": [
{
"path": "project_id",
"message": "the project's type does not allow playlists"
}
]
}