Write card text as one document
POST
/role/{roleId}/document
const url = 'https://api.harperharbor.com/open/v1/role/example/document';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fields":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.harperharbor.com/open/v1/role/example/document \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "fields": {} }'Only the fields you send are written; an absent field is left alone, so an older client never blanks a newer field.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”roleId
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
fields
object
key
additional properties
any
Examplegenerated
{ "fields": {}}Responses
Section titled “Responses”Written.