# Social Media

### Get Social Media Templates

<mark style="color:blue;">`GET`</mark> `/v1/config/socialMedias`

#### Query Parameters

| Name    | Type   | Description                      |
| ------- | ------ | -------------------------------- |
| focus   | String | `contact` , `socialmedia`, `all` |
| groupBy | String | category                         |
| s       | String | search parameter                 |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}

### Add/Update Social Media

<mark style="color:green;">`POST`</mark> `/v1/cards/{CARD_UUID}/ social-media`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                               | Type     | Description                 |
| -------------------------------------------------- | -------- | --------------------------- |
| pos                                                | String   | nullable \| numeric         |
| color<mark style="color:red;">\*</mark>            | array    |                             |
| color.primary<mark style="color:red;">\*</mark>    | string   | HEX-Color code              |
| color.secondary<mark style="color:red;">\*</mark>  | string   | HEX-Color code              |
| class\_icon<mark style="color:red;">\*</mark>      | string   | nullable                    |
| name<mark style="color:red;">\*</mark>             | string   |                             |
| username<mark style="color:red;">\*</mark>         | string   | URL ro social media channel |
| id                                                 | nullable | social media template id    |
| sm\_template\_id<mark style="color:red;">\*</mark> | nullable | social media template id    |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}

### Sort Social Media

<mark style="color:green;">`POST`</mark> `/v1/cards/{CARD_UUID}/ social-media/pos`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

#### Request Body

| Name                                   | Type   | Description          |
| -------------------------------------- | ------ | -------------------- |
| uuid<mark style="color:red;">\*</mark> | String | UUID of Social Media |
| pos<mark style="color:red;">\*</mark>  | String | Numeric              |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}

### Delete Social Media

<mark style="color:green;">`POST`</mark> `/v1/cards/{CARD_UUID}/ socia-media/{SOCIAL_MEDIA_UUID}/delete`

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}
