Skip to main content
PATCH
Update a custom API action

Authorizations

Authorization
string
header
required

Locus Pro dashboard session (Cognito).

Path Parameters

providerId
string<uuid>
required

Workspace-owned custom provider ID. This is distinct from its public custom-{slug} catalog name.

endpointId
string<uuid>
required

Workspace-owned custom action ID.

Body

application/json

Any non-empty subset of the create fields except slug. Unspecified fields remain unchanged; all affected contracts and prices are revalidated.

name
string
Required string length: 1 - 80
description
string
Required string length: 1 - 500
method
enum<string>
Available options:
GET,
POST,
PUT,
PATCH,
DELETE
path
string
Required string length: 1 - 1024
inputSchema
object
inputExample
object
outputSchema
object | null
outputExample
any
providerCostUsdc

Non-negative exact decimal string with at most six fractional digits. Endpoint-specific positivity and amount limits still apply.

Pattern: ^\d+(?:\.\d{1,6})?$
markupBps
integer
Required range: 0 <= x <= 100000
flatMarkupUsdc

Non-negative exact decimal string with at most six fractional digits. Endpoint-specific positivity and amount limits still apply.

Pattern: ^\d+(?:\.\d{1,6})?$
enabled
boolean

Response

Action updated

success
any
required
endpoint
object
required