---
agentTools:
  projectIndex: https://developer.sa.up42.com/llms.txt
---

# Update a STAC item

Change the title and tags of a STAC item.

> 📘
>
> This action can’t be done with the Viewer [role](https://docs.sa.up42.com/getting-started/roles).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "UP42 API",
    "contact": {
      "name": "Contact support",
      "email": "support@sa.up42.com"
    },
    "license": {
      "name": "Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License",
      "url": "http://creativecommons.org/licenses/by-nc-nd/4.0/"
    },
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://api.sa.up42.com"
    }
  ],
  "security": [
    {
      "httpBearer": []
    }
  ],
  "paths": {
    "/v2/assets/stac/collections/{collection-id}/items/{item-id}": {
      "patch": {
        "tags": [
          "Data management"
        ],
        "summary": "Update a STAC item",
        "description": "Change the title and tags of a STAC item.",
        "operationId": "patchSASItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/STACCollectionID"
          },
          {
            "name": "item-id",
            "in": "path",
            "description": "The STAC item ID.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "title": "Item Id",
              "type": "string",
              "description": "The STAC item ID.",
              "format": "uuid"
            },
            "example": "123e4567-e89b-12d3-a456-426614174000"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchItem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTP401Response"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTP404Response"
                }
              }
            }
          },
          "422": {
            "description": "Request error. Check the `detail` property for a specific error message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTP422Response"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Please contact support"
          }
        },
        "security": [
          {
            "httpBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Link": {
        "type": "object",
        "properties": {
          "rel": {
            "type": "string",
            "example": "self"
          },
          "href": {
            "type": "string",
            "example": "https://api.up42.dev/catalog/hosts/oneatlas/stac/search"
          }
        }
      },
      "Asset": {
        "title": "Asset",
        "required": [
          "href"
        ],
        "type": "object",
        "properties": {
          "href": {
            "title": "Data URL",
            "type": "string",
            "description": "The URL of a downloadable or a streamable file related to the STAC asset.",
            "example": "https://api.sa.up42.com/v2/assets/asset-id"
          },
          "title": {
            "title": "Data title",
            "type": "string",
            "description": "The STAC asset title.",
            "nullable": true,
            "example": "Red band"
          },
          "description": {
            "title": "Data description",
            "type": "string",
            "description": "The STAC asset description.",
            "nullable": true,
            "example": "Red band covers spectral range x to z nanometer"
          },
          "type": {
            "title": "Data media type",
            "type": "string",
            "description": "The STAC asset data type.",
            "example": "image/tiff"
          },
          "roles": {
            "title": "Data role",
            "type": "array",
            "description": "The purpose of the STAC asset.",
            "nullable": true,
            "example": [
              "data"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "HTTP401Response": {
        "title": "HTTP401Response",
        "required": [
          "detail",
          "status",
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "title": "401 Unauthorized Error",
            "type": "string",
            "example": "Unauthorized"
          },
          "status": {
            "title": "Unauthorized Status",
            "type": "integer",
            "example": 401
          },
          "detail": {
            "title": "401 Detailed Message",
            "type": "string",
            "example": "Couldn't validate credentials"
          }
        }
      },
      "HTTP404Response": {
        "title": "HTTP404Response",
        "required": [
          "detail",
          "status",
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "title": "404 Not Found Error",
            "type": "string",
            "example": "Not Found"
          },
          "status": {
            "title": "Not Found Status",
            "type": "integer",
            "example": 404
          },
          "detail": {
            "title": "404 Detailed Message",
            "type": "string",
            "example": "The resource isn't available"
          }
        }
      },
      "HTTP422Response": {
        "title": "HTTP422Response",
        "required": [
          "detail",
          "status",
          "title"
        ],
        "type": "object",
        "properties": {
          "status": {
            "title": "Unprocessable Content Status",
            "type": "integer",
            "example": 422
          },
          "title": {
            "title": "422 Error Title",
            "type": "string",
            "example": "Unprocessable Content"
          },
          "detail": {
            "title": "Detail",
            "type": "array",
            "example": [
              {
                "loc": [
                  "body",
                  "links"
                ],
                "msg": "field required",
                "type": "value_error.missing"
              }
            ],
            "items": {
              "$ref": "#/components/schemas/PydanticErrorDict"
            }
          }
        }
      },
      "Item": {
        "title": "Item",
        "required": [
          "collection",
          "id",
          "links",
          "properties",
          "stac_extensions",
          "stac_version"
        ],
        "type": "object",
        "properties": {
          "assets": {
            "title": "Assets",
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Asset"
            },
            "description": "A list of STAC assets.",
            "example": {
              "6072a0ee-0fff-4755-9cc7-660711de9b35": {
                "href": "https://api.sa.up42.com/v2/assets/6072a0ee-0fff-4755-9cc7-660711de9b35",
                "title": "Original Delivery",
                "roles": [
                  "data",
                  "original"
                ],
                "type": "application/zip"
              }
            },
            "default": {}
          },
          "links": {
            "title": "Links",
            "type": "array",
            "description": "Links associated with the resource that can be used to navigate through objects.\n",
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "stac_extensions": {
            "title": "STAC extensions",
            "type": "array",
            "description": "STAC extensions activated for the resource.\n",
            "example": [
              "https://api.sa.up42.com/stac-extensions/up42-order/v1.0.0/schema.json"
            ],
            "items": {
              "type": "string"
            }
          },
          "geometry": {
            "title": "Item geometry",
            "type": "object",
            "description": "The data item's geometry.\n",
            "nullable": true,
            "example": {
              "coordinates": [
                [
                  [
                    -0.12723744012390625,
                    51.50159191029297
                  ],
                  [
                    -0.12723744012390625,
                    51.5003265262352
                  ],
                  [
                    -0.12475743729621058,
                    51.5003265262352
                  ],
                  [
                    -0.12475743729621058,
                    51.50159191029297
                  ],
                  [
                    -0.12723744012390625,
                    51.50159191029297
                  ]
                ]
              ],
              "type": "Polygon"
            },
            "anyOf": [
              {
                "$ref": "#/components/schemas/Point"
              },
              {
                "$ref": "#/components/schemas/MultiPoint"
              },
              {
                "$ref": "#/components/schemas/LineString"
              },
              {
                "$ref": "#/components/schemas/MultiLineString"
              },
              {
                "$ref": "#/components/schemas/STACPolygon"
              },
              {
                "$ref": "#/components/schemas/MultiPolygon"
              },
              {
                "$ref": "#/components/schemas/NullableObject"
              }
            ]
          },
          "bbox": {
            "title": "Bounding box",
            "type": "array",
            "description": "The bounding box that encloses the data item's geometry.\n",
            "nullable": true,
            "example": [
              160.6,
              -55.95,
              170,
              -25.89
            ],
            "anyOf": [
              {
                "maxItems": 4,
                "minItems": 4,
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              {
                "maxItems": 6,
                "minItems": 6,
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              {
                "$ref": "#/components/schemas/NullableArray"
              }
            ]
          },
          "properties": {
            "title": "Item properties",
            "type": "object",
            "description": "A list of additional STAC item metadata.",
            "example": {
              "gsd": 2.421570738932087,
              "title": "NewImage123",
              "datetime": "2022-12-23T15:08:45.900000+00:00",
              "platform": "SPOT-6",
              "end_datetime": "2022-12-23T15:08:45.900000+00:00",
              "start_datetime": "2022-12-23T15:08:45.900000+00:00",
              "constellation": "SPOT",
              "eo:cloud_cover": 0
            }
          },
          "type": {
            "title": "Type",
            "type": "string",
            "description": "The type of object.\n",
            "default": "Feature",
            "enum": [
              "Feature"
            ]
          },
          "stac_version": {
            "title": "STAC API version",
            "type": "string",
            "description": "The STAC API version.\n",
            "example": "1.0.0"
          },
          "id": {
            "title": "Identifier",
            "type": "string",
            "description": "The data item ID.",
            "format": "uuid",
            "example": "033b4a5a-c492-4eba-915e-2000a0a84049"
          },
          "collection": {
            "title": "Collection",
            "type": "string",
            "description": "The ID of the STAC collection the data item belongs to.\n",
            "format": "uuid",
            "example": "033b4a5a-c492-4eba-915e-2000a0a84049"
          }
        }
      },
      "LineString": {
        "title": "LineString",
        "required": [
          "coordinates"
        ],
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "default": "LineString"
          },
          "coordinates": {
            "title": "Coordinates",
            "minItems": 2,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "maxItems": 2,
                  "minItems": 2,
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                },
                {
                  "maxItems": 3,
                  "minItems": 3,
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                }
              ]
            }
          }
        },
        "description": "LineString Model"
      },
      "MultiLineString": {
        "title": "MultiLineString",
        "required": [
          "coordinates"
        ],
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "default": "MultiLineString"
          },
          "coordinates": {
            "title": "Coordinates",
            "minItems": 1,
            "type": "array",
            "items": {
              "minItems": 2,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  },
                  {
                    "maxItems": 3,
                    "minItems": 3,
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                ]
              }
            }
          }
        },
        "description": "MultiLineString Model"
      },
      "MultiPoint": {
        "title": "MultiPoint",
        "required": [
          "coordinates"
        ],
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "default": "MultiPoint"
          },
          "coordinates": {
            "title": "Coordinates",
            "minItems": 1,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "maxItems": 2,
                  "minItems": 2,
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                },
                {
                  "maxItems": 3,
                  "minItems": 3,
                  "type": "array",
                  "items": {
                    "type": "number"
                  }
                }
              ]
            }
          }
        },
        "description": "MultiPoint Model"
      },
      "MultiPolygon": {
        "title": "MultiPolygon",
        "required": [
          "coordinates"
        ],
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "default": "MultiPolygon"
          },
          "coordinates": {
            "title": "Coordinates",
            "minItems": 1,
            "type": "array",
            "items": {
              "minItems": 1,
              "type": "array",
              "items": {
                "minItems": 4,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "maxItems": 2,
                      "minItems": 2,
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    },
                    {
                      "maxItems": 3,
                      "minItems": 3,
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "description": "MultiPolygon Model"
      },
      "Point": {
        "title": "Point",
        "required": [
          "coordinates"
        ],
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "default": "Point"
          },
          "coordinates": {
            "title": "Coordinates",
            "anyOf": [
              {
                "maxItems": 2,
                "minItems": 2,
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              {
                "maxItems": 3,
                "minItems": 3,
                "type": "array",
                "items": {
                  "type": "number"
                }
              }
            ]
          }
        },
        "description": "Point Model"
      },
      "PydanticErrorDict": {
        "title": "PydanticErrorDict",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Loc",
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            }
          },
          "msg": {
            "title": "Msg",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        }
      },
      "STACPolygon": {
        "title": "Polygon",
        "required": [
          "coordinates"
        ],
        "type": "object",
        "properties": {
          "type": {
            "title": "Type",
            "type": "string",
            "default": "Polygon"
          },
          "coordinates": {
            "title": "Coordinates",
            "minItems": 1,
            "type": "array",
            "items": {
              "minItems": 4,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  },
                  {
                    "maxItems": 3,
                    "minItems": 3,
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                ]
              }
            }
          }
        },
        "description": "Polygon Model"
      },
      "NullableObject": {
        "type": "object",
        "nullable": true
      },
      "NullableArray": {
        "type": "array",
        "nullable": true
      },
      "PatchItem": {
        "type": "object",
        "properties": {
          "up42-user:title": {
            "maxLength": 250,
            "minLength": 1,
            "type": "string",
            "description": "An updated STAC item title.",
            "nullable": true,
            "example": "SPOT 6/7 NY Central Park"
          },
          "up42-user:tags": {
            "type": "array",
            "description": "A list of tags that categorize the STAC item. A tag can consist of letters, numbers, spaces, and special characters (`.`, `-`, `_`, `/`, `:`).",
            "example": [
              "optical",
              "US"
            ],
            "items": {
              "maxLength": 180,
              "minLength": 1,
              "type": "string"
            }
          }
        }
      }
    },
    "parameters": {
      "STACCollectionID": {
        "name": "collection-id",
        "in": "path",
        "description": "The STAC collection ID.",
        "required": true,
        "style": "simple",
        "explode": false,
        "schema": {
          "type": "string",
          "format": "uuid",
          "example": "123e4567-e89b-12d3-a456-426614174000"
        }
      }
    },
    "securitySchemes": {
      "httpBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 165,
      "2": 230,
      "3": 222,
      "4": 219,
      "5": 170,
      "6": 168,
      "7": 0,
      "8": 55,
      "9": 58,
      "10": 254,
      "11": 67
    }
  }
}
```