Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The FundRuleServiceCreateRequest message.

displayName
string

The displayName field.

grant
Spend Limit · object | null

SpendLimit is the three-way behavior fork. Which arms are legal depends on the scope carrying it; pkg/funds enforces that matrix, not the schema, because one SpendControls shape is shared by every scope.

This message contains a oneof named kind. Only a single field of the following list may be set at a time:

  • unlimited
  • amount
  • blocked
groupRef
App Entitlement Ref · object | null

The AppEntitlementRef message.

reason
string

The reason field.

Response

200 - application/json

Successful response

The FundRuleServiceCreateResponse message.

rule
Fund Rule · object | null

FundRule is one group grant as the API renders it.