# 소셜 등록

<mark style="color:green;">`POST`</mark> `http://{backoffice-domain}/m1.0/add/social`

#### Headers

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

#### Request Body

| Name                                           | Type   | Description    |
| ---------------------------------------------- | ------ | -------------- |
| social\_type<mark style="color:red;">\*</mark> | int64  | 소셜 종류          |
| social\_name<mark style="color:red;">\*</mark> | string | 소셜명 (20byte이내) |

{% tabs %}
{% tab title="200: OK " %}
```javascript
{
    "return": 0,
    "message": "success"
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}
```
curl --location --request POST 'http://{backoffice-domain}/m1.0/backoffice/add/social' \
--header 'Content-Type: application/json' \
--data-raw '{
    "social_type": 99,
    "social_name": "abcd"
}'
```
{% endtab %}

{% tab title="Example Body" %}
```
{
    "social_type": 99,
    "social_name": "Twitter"
}
```
{% endtab %}

{% tab title="Result Code" %}
| return | message           | desc.    |
| ------ | ----------------- | -------- |
| 0      | success           | 성공       |
| 19000  | Internal DB error | 내부 DB 에러 |
{% endtab %}
{% endtabs %}
