Skip to main content
POST
/
ai
/
sa
/
create
/
role
sora create role
curl --request POST \
  --url https://ai.pmock.com/api/ai/sa/create/role \
  --header 'Content-Type: application/json' \
  --data '
{
  "videoUrl": "<string>",
  "name": "<string>",
  "displayName": "<string>",
  "description": "<string>",
  "instructionText": "<string>",
  "safetyInstructionText": "<string>"
}
'
{
  "code": 200,
  "message": "<string>",
  "data": {
    "taskId": "<string>"
  },
  "traceId": "<string>"
}

Body

application/json
videoUrl
string
required

video url of the role,not longer than 3 seconds

Minimum string length: 1
name
string

name of the role

displayName
string

display name of the role

description
string

description of the role

instructionText
string

instruction text of the role

safetyInstructionText
string

safety instruction text of the role

Response

200 - */*

OK

Unified return structure for response results

code
integer<int32>

Response status code

Example:

200

message
string

Response message

data
object

Response result

traceId
string

Response traceId