API reference
V1Instructions

Update Instruction

Update the details of an existing instruction.

PUT
/api/v1/instructions/{id}

Update the details of an existing instruction.

Authorization

access_token
Authorization<token>

In: header

Path Parameters

id*string

Instruction ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v1/instructions/string" \  -H "Content-Type: application/json" \  -d '{    "title": "New Instruction",    "content": "my content..."  }'
{  "message": "string",  "status": "string",  "data": {    "id": "1ja0n2shds",    "title": "Instruction Title",    "content": "Instruction content...",    "created_at": "string",    "updated_at": "string"  }}