Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1016 Bytes

POST_create.md

File metadata and controls

34 lines (29 loc) · 1016 Bytes

Create a red-flag record

API endpoint that represents the creation of red-flag record

  • URL Endpoint: /api/v1/red-flags

  • Method: POST

  • URL Params: None

  • Header Options:

    • Authorization: Bearer access_token
  • Request Body:

    Name Type Required Description
    location string The red-flag's location
    images image Attached images
    videos video Attached videos
    title string The record's title
    comment string The record's comment
  • Success Response

    • Code: 201 Created
    • Content:
      {
        "status": 201,
        "data": [
          {
            "id": 3,
            "message": "Created red-flag record"
          }
        ]
      }