Skip to Content

CreateOrganizationAvatarUpload

POST
/auth/v1/organizations/{org_id}/avatar/upload

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

org_id*org_id

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.CreateAvatarUploadResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "image_id": {
        "type": "string",
        "title": "image_id"
      },
      "upload_url": {
        "type": "string",
        "title": "upload_url"
      },
      "expires_at": {
        "title": "expires_at",
        "$ref": "#/components/schemas/google.protobuf.Timestamp",
        "$ref-value": {
          "type": "string",
          "examples": [
            "2023-01-15T01:30:15.01Z",
            "2024-12-25T12:00:00Z"
          ],
          "format": "date-time",
          "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
        }
      }
    },
    "title": "CreateAvatarUploadResponse",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/auth/v1/organizations/string/avatar/upload'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.CreateAvatarUploadResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "image_id": {
        "type": "string",
        "title": "image_id"
      },
      "upload_url": {
        "type": "string",
        "title": "upload_url"
      },
      "expires_at": {
        "title": "expires_at",
        "$ref": "#/components/schemas/google.protobuf.Timestamp",
        "$ref-value": {
          "type": "string",
          "examples": [
            "2023-01-15T01:30:15.01Z",
            "2024-12-25T12:00:00Z"
          ],
          "format": "date-time",
          "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
        }
      }
    },
    "title": "CreateAvatarUploadResponse",
    "additionalProperties": false
  }
}