Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Dec 17, 2024
1 parent 9066fb1 commit 4025ec4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions api-specs/api/resources/customers.raml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ post:
displayName: Search Customers
securedBy: [oauth_2_0: { scopes: ['view_customers:{projectKey}'] }]
description: |
A [SearchNotReady](ctp:api:type:SearchNotReadyError) error is returned if the indexing is in progress or the feature is deactivated. If deactivated, you can [reactivate](/../api/projects/customer-search#reactivate) it.
If the initial indexing is in progress or the feature is inactive, a [SearchNotReady](ctp:api:type:SearchNotReadyError) error is returned.
If inactive, you can [reactivate](/../api/projects/customer-search#reactivate) it.
body:
application/json:
type: CustomerSearchRequest
Expand All @@ -252,7 +253,7 @@ post:
securedBy: [oauth_2_0: { scopes: ['view_customers:{projectKey}'] }]
description: |
Checks whether a search index of Customers exists for a Project.
If an index exists, a `200 OK` is returned; otherwise, a `409 Conflict`.
Returns a `200 OK` if an index exists; otherwise, returns a `409 Conflict`.
responses:
200:
description: A search index exists and the [Search Customers](ctp:api:endpoint:/{projectKey}/customers/search:POST) endpoint is fully operational.
Expand Down
3 changes: 3 additions & 0 deletions api-specs/api/resources/products.raml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ post:
post:
displayName: Search Products
securedBy: [oauth_2_0: { scopes: ['view_published_products:{projectKey}'] }]
description: |
If the indexing is in progress or the feature is inactive, an [ObjectNotFound](ctp:api:type:ObjectNotFoundError) error is returned.
If inactive, you can [reactivate](/../api/projects/product-search#activation-of-the-feature) it.
body:
application/json:
type: ProductSearchRequest
Expand Down
6 changes: 4 additions & 2 deletions api-specs/api/types/error/ObjectNotFoundError.raml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ type: ErrorObject
displayName: ObjectNotFoundError
discriminatorValue: ObjectNotFound
description: |
Returned when the requested resource was not found.
Returned if the requested resource was not found or the Product Search index is [inactive](/../api/projects/product-search#activation-of-the-feature).
properties:
code:
type: string
message:
type: string
description: |
`"A $resourceType with identifier $id was unexpectedly not found."`
`"A $resourceType with identifier $id was unexpectedly not found."` or
`"No index found for project"`
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type: GraphQLErrorObject
displayName: GraphQLObjectNotFoundError
discriminatorValue: ObjectNotFound
description: |
Returned when the requested resource was not found.
Returned if the requested resource was not found or the Product Search index is [inactive](/../api/projects/product-search#activation-of-the-feature).
properties:
code:
type: string

0 comments on commit 4025ec4

Please sign in to comment.