Create Organization Label

posthttps://app.fossa.com/api/organizations/labels

Creates a new Label associated with the Organization. Restricted to premium users.

Request body (required) · application/json

labelstring

Text that this Label represents

Responses

201Created
idinteger

ID of this label

organizationIdinteger

ID of the organization that this Label is associated with

labelstring

Text that this Label represents

400Bad Request
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

401Unauthenticated Request
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

409Conflict
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

Try this endpoint

Build a request and run it against app.fossa.com.

Bearer

Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.

POST https://app.fossa.com/api/organizations/labels
curl --request POST \  --url 'https://app.fossa.com/api/organizations/labels' \  --header 'accept: application/json' \  --header 'authorization: Bearer YOUR_API_TOKEN' \  --header 'content-type: application/json' \  --data '{  "label": "string"}'

Real request. Mutating methods can change data.

Click Try It to run a request and see the response here.
Enter a Bearer token before running this request.
application/json