Skip to Content

RenewImageUpload

POST
/media/v1/projects/{project_id}/images/{image_id}/upload/renew

RenewImageUpload issues a new upload URL for an image whose earlier URL expired or was interrupted. The image and object key are unchanged.

Authorization

headerX-API-Key<token>

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

Path Parameters

project_id*project_id
image_id*image_id

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/images.v1.ImageUpload",
  "$ref-value": {
    "type": "object",
    "properties": {
      "image_id": {
        "type": "string",
        "examples": [
          "LmNoPqR678"
        ],
        "title": "image_id"
      },
      "upload_url": {
        "type": "string",
        "examples": [
          "https://cdn.example.com/image.jpg"
        ],
        "title": "upload_url"
      },
      "expires_at": {
        "examples": [
          "2026-01-15T10:30:00Z"
        ],
        "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": "ImageUpload",
    "additionalProperties": false
  }
}
default
curl -X POST 'https://api.rixl.com/media/v1/projects/Bq4y3QB38S/images/LmNoPqR678/upload/renew'

Success

application/json

{
  "$ref": "#/components/schemas/images.v1.ImageUpload",
  "$ref-value": {
    "type": "object",
    "properties": {
      "image_id": {
        "type": "string",
        "examples": [
          "LmNoPqR678"
        ],
        "title": "image_id"
      },
      "upload_url": {
        "type": "string",
        "examples": [
          "https://cdn.example.com/image.jpg"
        ],
        "title": "upload_url"
      },
      "expires_at": {
        "examples": [
          "2026-01-15T10:30:00Z"
        ],
        "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": "ImageUpload",
    "additionalProperties": false
  }
}