Skip to main content
POST
Create media

Headers

Authorization
string
required

Bearer token for authentication

Body

file
file
required

Image in png, jpg or svg format

data.type
string
required

Resource type identifier

Allowed value: "media"
data.attributes.media_type
enum<string>

Type of media (avatar, logo, banner)

Available options:
avatar,
logo,
banner
data.attributes.is_primary
boolean
default:true

Marks preferred media. Default: true

data.relationships.people.data[].type
string

Type for people relationship

Allowed value: "people"
data.relationships.people.data[].id
string<uuid>

UUID of the person to associate with this media

data.relationships.companies.data[].type
string

Type for company relationship

Allowed value: "company"
data.relationships.companies.data[].id
string<uuid>

UUID of the company to associate with this media

data.relationships.workspaces.data[].type
string

Type for workspace relationship

Allowed value: "workspace"
data.relationships.workspaces.data[].id
string<uuid>

UUID of the workspace to associate with this media

data.relationships.workspaces.data[].external_workspace_id
string<uuid>

UUID of the external workspace to associate with this media

Response

Media created successfully

data
object