From 83b81d8842fe000b486145eebd80ad6c3dd0b4ae Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:17:30 +0000 Subject: [PATCH] Updated API from documentation release --- api-specs/import/types/error.raml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/api-specs/import/types/error.raml b/api-specs/import/types/error.raml index 9aa60c40a..2d3c2a87a 100644 --- a/api-specs/import/types/error.raml +++ b/api-specs/import/types/error.raml @@ -207,3 +207,28 @@ types: GenericError: type: ErrorObject discriminatorValue: Generic + ReferencedResourceNotFound: + type: ErrorObject + displayName: ReferencedResourceNotFoundError + discriminatorValue: ReferencedResourceNotFound + description: | + Returned when a resource referenced by a [Reference](/../api/types#reference) or a [ResourceIdentifier](/../api/types#resourceidentifier) could not be found. + properties: + code: + type: string + message: + type: string + description: | + `"The referenced object of type $typeId $predicate was not found. It either doesn't exist, or it can't be accessed from this endpoint (e.g., if the endpoint filters by store or customer account)."` + typeId: + type: common.ReferenceType + description: | + Type of referenced resource. + id?: + type: string + description: | + Unique identifier of the referenced resource, if known. + key?: + type: string + description: | + User-defined unique identifier of the referenced resource, if known.