> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zype.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Playlist(s)

Add playlists to a Zobject

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Zobjects",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/zobjects/{id}/add_playlists": {
      "put": {
        "summary": "Add Playlist(s)",
        "description": "Add playlists to a Zobject",
        "tags": [
          "Zobjects"
        ],
        "operationId": "addPlaylistZobject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the zobject record"
          }
        ],
        "requestBody": {
          "description": "",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "title": "ZobjectAddPlaylistRequest",
                "type": "object",
                "required": [
                  "zobject_type",
                  "playlist_id"
                ],
                "properties": {
                  "zobject_type": {
                    "type": "string",
                    "description": "The type of Zobject"
                  },
                  "playlist_id": {
                    "type": "array",
                    "title": "Array of playlist IDs to add",
                    "items": {
                      "type": "string",
                      "description": "Id for the playlist"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1zobjects/post/responses/201/content/application~1json/schema"
                }
              }
            }
          },
          "404": {
            "description": "Zobject not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1zobjects~1%7Bid%7D/get/responses/404/content/application~1json/schema"
                }
              }
            }
          }
        }
      }
    }
  }
}
```