Add a collaborator to the project
POST/api/projects/:id/collaborators
Add a collaborator to the project
Request
Responses
- 200
- 401
- 403
- 409
Successful response
Unauthorized — authentication credentials are missing or invalid
Forbidden — requires projects.collaborators.manage permission
Conflict. This is a pure create path, so it learns of a conflict as a unique-key violation on (user_id, project_id) — which is GLOBAL, not per-tenant — and then disambiguates by re-reading the row (PT-888). If the row is visible in this tenant it is a routine race: "User is already a collaborator on this project". If it is not, the key is held by a row this organisation does not own, and the message is deliberately non-specific so the response cannot be used to detect that a user belongs to another tenant. Only the first is resolvable by the caller.