Skip to main content

AlreadyExists

Andromeda answers 409 with the problem type https://uri.etsi.org/ngsi-ld/errors/AlreadyExists. The resource you are creating already exists. Andromeda never overwrites the stored one, so delete it first or pick another identifier. The specification defines this type and binds it to 409.

When this comes back​

  • Create Entity under an id that is taken. This operation has no upsert, so overwriting needs Replace Entity or a batch upsert. See Entities.
  • Create Subscription with an id already in use. See Subscriptions.
  • Create Snapshot under an id that already exists, or a second clone under the same id. See Snapshots.

In a batch, a create whose id is taken is reported against that entity in a 207 instead, and the rest of the batch is written.

A repeated Create Entity after a timed-out request answers 409 too, and that is good news. It tells you the first attempt got through. See Writes that may or may not have happened.