# Mutations / Price Sets

# Price Sets

**Mutation**
## clonePriceSet — Returns [PriceSet](/documentation/Objects/Price-Set#PriceSet)

**Scopes required:** edit_products

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the price set to clone |
| name | *String!* | The name of the newly cloned price set |

**Example Mutation**

```graphql
mutation ClonePriceSet($id: ID!, $name: String!) {
    clonePriceSet(id: $id, name: $name) {
        id,
        name
    }
}

# Example variables
{
    "id": "<ID>",
    "name": "<NAME>"
}
```

**Mutation**
## createPriceSet — Returns [PriceSet](/documentation/Objects/Price-Set#PriceSet)

**Scopes required:** edit_products

| Arguments | Type | Description |
| --- | --- | --- |
| name | *String!* | The name of the new price set |
| parentId | [ID](/documentation/Types/UUID#UUID) | The ID of the price set this should inherit from, if null it will inherit from the default prices |

**Example Mutation**

```graphql
mutation CreatePriceSet($name: String!) {
    createPriceSet(name: $name) {
        id,
        name
    }
}

# Example variables
{
    "name": "<NAME>"
}
```

**Mutation**
## deletePriceSet — Returns [PriceSet](/documentation/Objects/Price-Set#PriceSet)

**Scopes required:** edit_products

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the price set to delete |

**Example Mutation**

```graphql
mutation DeletePriceSet($id: ID!) {
    deletePriceSet(id: $id) {
        id,
        name
    }
}

# Example variables
{
    "id": "<ID>"
}
```

**Mutation**
## updatePriceSet — Returns [PriceSet](/documentation/Objects/Price-Set#PriceSet)

**Scopes required:** edit_products

| Arguments | Type | Description |
| --- | --- | --- |
| id | [ID!](/documentation/Types/UUID#UUID) | The ID of the price set |
| name | *String* | The name of the price set |
| parentId | [ID](/documentation/Types/UUID#UUID) | The parent ID for the price set |

**Example Mutation**

```graphql
mutation UpdatePriceSet($id: ID!) {
    updatePriceSet(id: $id) {
        id,
        name
    }
}

# Example variables
{
    "id": "<ID>"
}
```