Create agent avatar

http
POST /projects/{project_reference}/agents/{agent_id}/avatar

Create agent avatar. Requires project.agents.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
agent_idpathYes
source_target_kindquerySource target: project or preview_branch. Defaults to project.
target_branch_idqueryPreview branch UUID, for a preview_branch target.

Request body

FieldTypeRequiredDescription
assignbooleanPersist the generated avatar_url onto the agent. Defaults to false; set true to assign it to an existing agent.
configobjectAvatar configuration. Omit seed to generate a new avatar. With an explicit seed, omitted visual options use the existing avatar configuration if available. New agents use generator defaults.

Responses

StatusDescription
200Agent avatar generated
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.