PATCH /external/api/categories

PATCH /external/api/categories

Body

  • id string Required

    Minimum length is 1.

  • handle Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide handle attributes Show handle attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • title Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide title attributes Show title attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • storeId Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide storeId attributes Show storeId attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • sortIndex Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Nullable`1[object]]
    Hide sortIndex attributes Show sortIndex attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Nullable`1[object]]
    • value integer(int32) | null
    • Additional properties are NOT allowed
  • products Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Collections.Generic.List`1[object]]
    Hide products attributes Show products attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Collections.Generic.List`1[object]]
    • value array[object] | null
      Hide value attributes Show value attributes object
      • id string Required

        Minimum length is 1.

      • sortIndex integer(int32) | null
      • Additional properties are NOT allowed
    • Additional properties are NOT allowed
  • Additional properties are NOT allowed

Body

  • id string Required

    Minimum length is 1.

  • handle Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide handle attributes Show handle attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • title Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide title attributes Show title attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • storeId Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide storeId attributes Show storeId attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • sortIndex Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Nullable`1[object]]
    Hide sortIndex attributes Show sortIndex attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Nullable`1[object]]
    • value integer(int32) | null
    • Additional properties are NOT allowed
  • products Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Collections.Generic.List`1[object]]
    Hide products attributes Show products attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Collections.Generic.List`1[object]]
    • value array[object] | null
      Hide value attributes Show value attributes object
      • id string Required

        Minimum length is 1.

      • sortIndex integer(int32) | null
      • Additional properties are NOT allowed
    • Additional properties are NOT allowed
  • Additional properties are NOT allowed

Body

  • id string Required

    Minimum length is 1.

  • handle Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide handle attributes Show handle attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • title Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide title attributes Show title attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • storeId Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    Hide storeId attributes Show storeId attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[object]
    • value string | null
    • Additional properties are NOT allowed
  • sortIndex Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Nullable`1[object]]
    Hide sortIndex attributes Show sortIndex attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Nullable`1[object]]
    • value integer(int32) | null
    • Additional properties are NOT allowed
  • products Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Collections.Generic.List`1[object]]
    Hide products attributes Show products attributes Fygi.Domain.Utils.Optionals.cs.Optional`1[System.Collections.Generic.List`1[object]]
    • value array[object] | null
      Hide value attributes Show value attributes object
      • id string Required

        Minimum length is 1.

      • sortIndex integer(int32) | null
      • Additional properties are NOT allowed
    • Additional properties are NOT allowed
  • Additional properties are NOT allowed

Responses

  • 200

    Success

PATCH /external/api/categories
curl \
 --request PATCH 'http://test.api.fygi.store/external/api/categories' \
 --header "authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '[{"id":"string","handle":{"value":"string"},"title":{"value":"string"},"storeId":{"value":"string"},"sortIndex":{"value":42},"products":{"value":[{"id":"string","sortIndex":42}]}}]'
curl \
 --request PATCH 'http://test.api.fygi.store/external/api/categories' \
 --header "authorization: $API_KEY" \
 --header "Content-Type: text/json"
curl \
 --request PATCH 'http://test.api.fygi.store/external/api/categories' \
 --header "authorization: $API_KEY" \
 --header "Content-Type: application/*+json"
Request examples
[
  {
    "id": "string",
    "handle": {
      "value": "string"
    },
    "title": {
      "value": "string"
    },
    "storeId": {
      "value": "string"
    },
    "sortIndex": {
      "value": 42
    },
    "products": {
      "value": [
        {
          "id": "string",
          "sortIndex": 42
        }
      ]
    }
  }
]
Request examples
[
  {
    "id": "string",
    "handle": {
      "value": "string"
    },
    "title": {
      "value": "string"
    },
    "storeId": {
      "value": "string"
    },
    "sortIndex": {
      "value": 42
    },
    "products": {
      "value": [
        {
          "id": "string",
          "sortIndex": 42
        }
      ]
    }
  }
]
Request examples
[
  {
    "id": "string",
    "handle": {
      "value": "string"
    },
    "title": {
      "value": "string"
    },
    "storeId": {
      "value": "string"
    },
    "sortIndex": {
      "value": 42
    },
    "products": {
      "value": [
        {
          "id": "string",
          "sortIndex": 42
        }
      ]
    }
  }
]