resources

Post a resource

Changed on

Allows a logged in user to post a resource.

post/api/v1/resources

Request

  • The document declares no server URL.
  • Auth: API key in cookie token

Request body

titlestring required
descriptionstring nullable
urlstring uri required
resourceType'BLOG' | 'VIDEO' | 'TUTORIAL' required
categoryIdstring required
topicsstring[] required

Example request

{
  "title": "My Resource in Javascript",
  "description": "Lorem ipsum javascript",
  "url": "https://tutorials.cat/learn/javascript",
  "categoryId": "clocr0bi20000h8vwipfbazso",
  "topics": [
    "clocr0bpv000ah8vwnfvpo24p"
  ]
}

Response

Resource has been posted

Changes

    • info

      api operation id postResources was added

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • info

      added to the response body anyOf list for the response status

    • info

      removed the non-success response with the status