Skip to content

Updates an assignment (enabled, note).

PUT
/v1/m/sourcescope/assignments/{id}
curl --request PUT \
--url https://example.com/v1/m/sourcescope/assignments/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "connector_name": "example", "enabled": true, "id": "example", "mode": "example", "note": "example", "workspace_ref": "example" }'

Updates an assignment (enabled, note). The connector_name and workspace_ref are immutable — they form the unique key.

id
required
string

Path parameter id.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
Any of:
object
connector_name
Any of:

After trimming it must be non-empty on create. On update the stored value wins.

string
enabled
Any of:
boolean
id
Any of:

Accepted by the DTO but ignored on input; identity comes from the store.

string
mode
Any of:

After trimming and lowercasing, r remains r; every other value normalizes to rw. Blank update input preserves the stored mode.

string
note
Any of:

Capped at 512 bytes.

string
workspace_ref
Any of:

After trimming it must resolve to a workspace on create. On update the stored value wins.

string
Example generated
{
"connector_name": "example",
"enabled": true,
"id": "example",
"mode": "example",
"note": "example",
"workspace_ref": "example"
}

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}