Optimizely Style Classes API

The Style Classes API from Optimizely — 8 operation(s) for style classes.

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/admin/StyleClasses List product style classes · Returns the EntitySet StyleClasses #
Ask an LLM
“Which style classes are defined in my commerce catalog?”
“Can I list only the active style classes, sorted by name?”
Tell an agent
List all style classes.
Find style classes matching the filter {filter}, ordered by {orderby}.
POST /api/v1/admin/StyleClasses Create a style class · Post a new entity to EntitySet StyleClasses #
Ask an LLM
“How do I create a new style class for product variants?”
“What is required when adding a style class, name and description?”
Tell an agent
Create a style class named {name} described as {description}.
Add a new active style class {name} with description {description}.
GET /api/v1/admin/StyleClasses({id}) Get a style class by ID · Returns the entity with the key from StyleClasses #
Ask an LLM
“What are the details of one style class by its ID?”
“Is a specific style class still active?”
Tell an agent
Get style class {id}.
Show the name, description and active flag of style class {id}.
PUT /api/v1/admin/StyleClasses({id}) Replace a style class · Replace entity in EntitySet StyleClasses #
Ask an LLM
“Can I overwrite a whole style class record in one request?”
“Does a full replace of a style class need name and description again?”
Tell an agent
Replace style class {id} with name {name} and description {description}.
Overwrite the entire style class {id} using a full PUT.
DELETE /api/v1/admin/StyleClasses({id}) Delete a style class by ID · Delete entity in EntitySet StyleClasses #
Ask an LLM
“How do I permanently delete one style class?”
“Does deleting a style class accept an If-Match ETag?”
Tell an agent destructive · confirm first
Delete style class {id}.
Delete style class {id} only if its ETag matches {ifMatch}.
PATCH /api/v1/admin/StyleClasses({id}) Update a style class · Update entity in EntitySet StyleClasses #
Ask an LLM
“How do I rename an existing style class?”
“Can I deactivate a style class without replacing the whole record?”
Tell an agent
Rename style class {id} to {name}.
Set isActive to {isActive} on style class {id}.
GET /api/v1/admin/StyleClasses/Default.Default() Get a default style class template · Call operation Default #
Ask an LLM
“What default values does a new style class start with?”
“Is there a blank style class template to fetch before creating one?”
Tell an agent
Fetch the default style class template.
Show me the default values for a new style class.
POST /api/v1/admin/StyleClasses/Default.archive Archive style classes with the archive action · Call operation archive #
Ask an LLM
“Can I archive style classes using the OData archive action instead of deleting them?”
“Which POST call archives a list of style classes by ID?”
Tell an agent
Run the Default.archive action on style classes {ids}.
POST to the archive action to archive style classes {ids}.
DELETE /api/v1/admin/styleclasses/archive Archive style classes through the DELETE archive route · Style classes archive route #
Ask an LLM
“Is there a DELETE route that archives style classes rather than removing them?”
“How does the /styleclasses/archive endpoint handle a list of IDs?”
Tell an agent destructive · confirm first
Archive style classes {ids} through the DELETE /styleclasses/archive route.
Send a DELETE to the style class archive route for {ids}.
DELETE /api/v1/admin/styleclasses/delete Bulk delete style classes · Style classes delete route #
Ask an LLM
“How do I permanently delete several style classes at once?”
“Can I pass a list of IDs to remove many style classes?”
Tell an agent destructive · confirm first
Bulk delete the style classes with IDs {ids}.
Permanently remove all of these style classes in one call: {ids}.
GET /api/v1/admin/styleclasses({key})/customproperties({custompropertyKey}) Get a custom property on a style class · Style classes get custom property by key and custompropertykey #
Ask an LLM
“Where do I read a custom property stored on a style class?”
“Can I fetch one extra property value from a style class record?”
Tell an agent
Get custom property {custompropertyKey} on style class {key}.
Show the custom property {custompropertyKey} of style class {key}.
GET /api/v1/admin/styleclasses({key})/styletraits({styletraitKey}) Get a style trait within a style class · Style classes get style trait by key and styletraitkey #
Ask an LLM
“What does one style trait, such as color or size, look like inside a style class?”
“Can I fetch a single style trait belonging to a style class?”
Tell an agent
Get style trait {styletraitKey} of style class {key}.
Show the details of trait {styletraitKey} in style class {key}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/optimizely:optimizely-style-classes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

optimizely-style-classes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: admin-v1
  title: Admin API V1 Style Classes API
servers:
- url: https://dogfood.commerce.insitesandbox.com
security: []
tags:
- name: Style Classes
paths:
  /api/v1/admin/StyleClasses:
    get:
      tags:
      - Style Classes
      summary: Returns the EntitySet StyleClasses
      operationId: StyleClasses_Get
      parameters:
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $filter
        in: query
        description: Filters the results, based on a Boolean condition.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      - name: $apply
        in: query
        description: Aggregates the results according to one or more transformations.
        required: false
        schema:
          type: string
      - name: $orderby
        in: query
        description: Sorts the results.
        required: false
        schema:
          type: string
      - name: $top
        in: query
        description: Returns only the first n results.
        required: false
        schema:
          type: integer
          format: int32
      - name: $skip
        in: query
        description: Skips the first n results.
        required: false
        schema:
          type: integer
          format: int32
      - name: $count
        in: query
        description: Includes a count of the matching results in the response.
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    post:
      tags:
      - Style Classes
      summary: Post a new entity to EntitySet StyleClasses
      operationId: StyleClasses_Post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Insite.Data.Entities.StyleClass'
        description: The entity to post
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/StyleClasses({id}):
    get:
      tags:
      - Style Classes
      summary: Returns the entity with the key from StyleClasses
      operationId: StyleClasses_GetById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    put:
      tags:
      - Style Classes
      summary: Replace entity in EntitySet StyleClasses
      operationId: StyleClasses_PutById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Insite.Data.Entities.StyleClass'
        description: The entity to put
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    delete:
      tags:
      - Style Classes
      summary: Delete entity in EntitySet StyleClasses
      operationId: StyleClasses_DeleteById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      - name: If-Match
        in: header
        description: If-Match header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    patch:
      tags:
      - Style Classes
      summary: Update entity in EntitySet StyleClasses
      operationId: StyleClasses_PatchById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Insite.Data.Entities.StyleClass'
        description: The entity to patch
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/StyleClasses/Default.Default():
    get:
      tags:
      - Style Classes
      summary: Call operation Default
      operationId: StyleClasses_Default
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/StyleClasses/Default.archive:
    post:
      tags:
      - Style Classes
      summary: Call operation archive
      operationId: StyleClasses_Archive
      parameters:
      - name: ids
        in: query
        required: true
        explode: true
        schema:
          type: array
          items:
            type: string
            format: uuid
      requestBody:
        $ref: '#/components/requestBodies/Affiliates_ArchiveParameters'
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/styleclasses/archive:
    delete:
      tags:
      - Style Classes
      operationId: StyleClasses_ArchiveRoute
      parameters:
      - name: ids
        in: query
        required: true
        explode: true
        schema:
          type: array
          items:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
      summary: Style classes archive route
      x-summary-source: derived
  /api/v1/admin/styleclasses/delete:
    delete:
      tags:
      - Style Classes
      operationId: StyleClasses_DeleteRoute
      parameters:
      - name: ids
        in: query
        required: true
        explode: true
        schema:
          type: array
          items:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
      summary: Style classes delete route
      x-summary-source: derived
  /api/v1/admin/styleclasses({key})/customproperties({custompropertyKey}):
    get:
      tags:
      - Style Classes
      operationId: StyleClasses_GetCustomPropertyByKeyAndCustompropertykey
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: custompropertyKey
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
      summary: Style classes get custom property by key and custompropertykey
      x-summary-source: derived
  /api/v1/admin/styleclasses({key})/styletraits({styletraitKey}):
    get:
      tags:
      - Style Classes
      operationId: StyleClasses_GetStyleTraitByKeyAndStyletraitkey
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: styletraitKey
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
      summary: Style classes get style trait by key and styletraitkey
      x-summary-source: derived
components:
  schemas:
    Insite.Data.Entities.StyleClass:
      required:
      - description
      - name
      type: object
      properties:
        id:
          format: uuid
          type: string
          example: 00000000-0000-0000-0000-000000000000
        description:
          maxLength: 1024
          minLength: 0
          type: string
        isActive:
          type: boolean
        name:
          maxLength: 255
          minLength: 0
          type: string
        createdOn:
          format: date-time
          type: string
        createdBy:
          type: string
        modifiedOn:
          format: date-time
          type: string
        modifiedBy:
          type: string
  requestBodies:
    Affiliates_ArchiveParameters:
      content:
        application/json:
          schema:
            type: object
            properties: {}
      description: archive action parameters
  securitySchemes:
    access_token:
      type: apiKey
      description: Token used to access storefront API.
      name: access_token
      in: query