Skip to main content
POST
/
v1
/
console
/
programmes
Create Programme
curl --request POST \
  --url http://localhost:8000/v1/console/programmes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "name": "<string>",
  "description": "<string>",
  "is_active": true
}
'
{
  "data": {
    "code": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "is_active": true,
    "name": "<string>",
    "description": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Body

application/json
code
string
required
Required string length: 1 - 32
Pattern: ^[A-Z0-9_-]+$
name
string
required
Required string length: 1 - 255
description
string | null
Maximum string length: 2000
is_active
boolean
default:true

Response

Successful Response

data
ProgrammeResponse · object
message
string | null
success
boolean
default:true