Skip to main content
POST
/
api
/
management
/
projects
/
{id}
/
medias
Enviar conteúdo no projeto
curl --request POST \
  --url https://api.olie.ai/api/management/projects/{id}/medias \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "audio": "<binary>",
  "file[0]": "<binary>",
  "text": "<string>",
  "type": 3
}
'
{
  "media": {
    "created_at": "<dateTime>",
    "deleted_at": "<dateTime>",
    "extension": "<string>",
    "file_url": "<uri>",
    "frame_id": "<uuid>",
    "id": "<uuid>",
    "log": "<string>",
    "name": "<string>",
    "project_id": "<uuid>",
    "technical_name": "<string>",
    "text": "<string>",
    "type": "<integer>",
    "updated_at": "<dateTime>",
    "user": {},
    "user_id": "<uuid>"
  },
  "response": "<boolean>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID do projeto

Example:

"<string>"

Body

application/json
audio
string
Example:

"<binary>"

file[0]
string
Example:

"<binary>"

text
string
Example:

"<string>"

type
number
Example:

3

Response

Conteúdo enviado com sucesso

media
object
response
string
Example:

"<boolean>"