Log In

Create a Resource

post/public/v1/resources

Attach a file by passing the id returned from the temporary upload endpoint as file. content is HTML and is sanitised before it is stored.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

Body

application/json
  • namestringrequiredmax length 255
  • descriptionstring | nullmax length 255
  • contentstring | nullmax length 1048576
  • visible_to_support_workersboolean
  • filestring | null

Response

201application/json

ResourceResource

  • dataobjectrequired
    ▶Show 9 child attributes
    • idstringrequired
      Example:r3s0u4c5-e6f7-47a8-9b0c-1d2e3f4a5b6c
    • namestringrequired
      Example:Staff Induction Guide
    • descriptionstring | nullrequired
      Example:Everything a new team member needs in their first week.
    • contentstring | nullrequired
      Example:<p>Read this before your first shift.</p>
    • visible_to_support_workersbooleanrequired
      Example:true
    • documentobjectrequired
      ▶Show 6 child attributes
      • idstringrequired
        Example:d1c2e3f4-a5b6-47c8-9d0e-1f2a3b4c5d6e
      • namestringrequired
        Example:Service Agreement
      • file_extensionstringrequired
        Example:pdf
      • archived_atstring | nullrequired
        Example:2024-02-01T09:00:00+00:00
      • created_atstringrequired
        Example:2024-01-15T10:30:00+00:00
      • categoriesobject[]required
        ▶Show 2 child attributes
        • idstringrequired
          Example:c4a5b6c7-d8e9-40f1-a2b3-c4d5e6f7a8b9
        • namestringrequired
          Example:Assessments
    • tagsobject[]required
      ▶Show 4 child attributes
      • idstringrequired
        Example:r1e2s3o4-u5r6-47c8-9e0t-1a2g3i4d5e6f
      • namestringrequired
        Example:High Priority
      • colourstringrequired
        Example:#ff0000
      • created_atstringrequired
        Example:2024-01-15T10:30:00+00:00
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
    • updated_atstring | nullrequired
      Example:2024-02-01T09:00:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 422Validation error