v1

latestOpenAPI 3.0.0Open Government Licence v3.02026-07-1482212.7 KB
Private

Update the topic details

Updates a topic's details for the next nested object.

put/topics/{id}

Path parameters

idstring required

The ID of a topic.

Request body

titlestring required

The title of a topic.

slugstring required

The slug of a topic.

descriptionstring required

The description of a topic.

release_datestring date-time required

The release date formatted to abide by RFC3339.

keywordsstring[]

List of keywords that relate to the topic.

state'created' | 'published' | 'completed' required

The state of the resource.

subtopics_idsstring[]

Array of subtopic ids

Example request

{
  "title": "Business, Industry and Trade",
  "slug": "businessindustryandtrade",
  "description": "Lots of information about business.",
  "release_date": "2022-10-10T08:30:00Z"
}

Response

Success