Bloss Docs

Change an agreement template

Developers
PATCH
/brands/{brandId}/onboarding/agreements/{agreementId}

Save an agreement's name or text, remove its uploaded PDF (it goes back to its text), or archive or unarchive it. Text changes are a draft: creators sign them once a flow using the agreement is published. Creators who already signed keep the version they signed.

Authorization

bearerAuth onboarding:write
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write.

Scope: onboarding:write

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
agreementId*string

An id from GET /brands/{brandId}/onboarding/agreements.

Length1 <= length

Request Body

application/json
  1. body
name?string

Up to 120 characters.

Lengthlength <= 120
markdown?string

Markdown, up to 100,000 characters. Merge fields are filled in for each creator when they sign: {{creator_name}}, {{brand_name}}, {{date}} and {{field:}} (an answer from one of the flow's forms). A flow can only publish an agreement with at least 20 characters.

Lengthlength <= 100000
removePdf?boolean

Drop the uploaded PDF from the draft, so the agreement uses its text.

archived?boolean

Archived agreements can't be used by a flow that publishes.

Response Body

Success.

application/json
  1. response
id*string
name*string
archived*boolean
draft*
publishedVersion*|

The version creators sign now. Null until a flow using it publishes.

curl -X PATCH 'https://example.com/api/v1/brands/string/onboarding/agreements/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "string",  "name": "string",  "archived": true,  "draft": {    "format": "text",    "text": "string"  },  "publishedVersion": 0}

Was this page helpful?