How it works
- If the resource is not found by the upsert criteria, a new resource is created and
201 Createdis returned. - If the resource is found, it is updated and
200 OKis returned. - If multiple resources are found, the operation fails and
409 Conflictis returned.
meta section of the request body using the upsert option:
trueor["id"]— match by resource identifier.["field1", "field2"]— match by specific field(s).
Supported methods
| Method | Can match by |
|---|---|
| POST | Resource identifier or other field(s) |
| PATCH | Resource identifier only |