Approve an assignment proposal
curl --request POST \ --url https://example.com/api/v1/assignment-proposals/example/approve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "productOwnerMemberId": "example", "projectManagerMemberId": "example", "teamId": "example" }'Applies the proposal once: the team is added to the project and each person becomes a manager of it, and the same on the project’s company (the team in its Teams, each person a Manager in its Direct Access with the Project Manager or Product Owner Role, added to the catalog when it has none). The body may change the team or either person first; null leaves that slot empty and an omitted field keeps the proposal. Requires projects.manage and reach to the project, and clients.edit when the company gets a team or a person it did not have. 404 when the proposal is not there for the caller, 409 when it was already decided, 422 for a team or a person that is not valid.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Example generated
{ "productOwnerMemberId": "example", "projectManagerMemberId": "example", "teamId": "example"}Responses
Section titled “Responses”The approved proposal.
object
The team and managers suggested for a project, from current workload, waiting for a person to approve or dismiss them.
object
Why this team and these people were proposed, in plain words.
Example
{ "data": { "status": "PENDING" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Conflict.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC