Actualizar cuenta
curl --request PUT \
--url https://community.goil.app/api/v1/external/account/{accountId} \
--header 'Content-Type: application/json' \
--data '
{
"phone": "<string>",
"attributesValue": [
{
"attributeId": "<string>",
"value": {
"text": "",
"number": 0,
"boolean": false,
"date": "2023-11-07T05:31:56Z",
"image": "<string>"
},
"tag": "<string>"
}
]
}
'import requests
url = "https://community.goil.app/api/v1/external/account/{accountId}"
payload = {
"phone": "<string>",
"attributesValue": [
{
"attributeId": "<string>",
"value": {
"text": "",
"number": 0,
"boolean": False,
"date": "2023-11-07T05:31:56Z",
"image": "<string>"
},
"tag": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone: '<string>',
attributesValue: [
{
attributeId: '<string>',
value: {
text: '',
number: 0,
boolean: false,
date: '2023-11-07T05:31:56Z',
image: '<string>'
},
tag: '<string>'
}
]
})
};
fetch('https://community.goil.app/api/v1/external/account/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://community.goil.app/api/v1/external/account/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'phone' => '<string>',
'attributesValue' => [
[
'attributeId' => '<string>',
'value' => [
'text' => '',
'number' => 0,
'boolean' => false,
'date' => '2023-11-07T05:31:56Z',
'image' => '<string>'
],
'tag' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://community.goil.app/api/v1/external/account/{accountId}"
payload := strings.NewReader("{\n \"phone\": \"<string>\",\n \"attributesValue\": [\n {\n \"attributeId\": \"<string>\",\n \"value\": {\n \"text\": \"\",\n \"number\": 0,\n \"boolean\": false,\n \"date\": \"2023-11-07T05:31:56Z\",\n \"image\": \"<string>\"\n },\n \"tag\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://community.goil.app/api/v1/external/account/{accountId}")
.header("Content-Type", "application/json")
.body("{\n \"phone\": \"<string>\",\n \"attributesValue\": [\n {\n \"attributeId\": \"<string>\",\n \"value\": {\n \"text\": \"\",\n \"number\": 0,\n \"boolean\": false,\n \"date\": \"2023-11-07T05:31:56Z\",\n \"image\": \"<string>\"\n },\n \"tag\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://community.goil.app/api/v1/external/account/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone\": \"<string>\",\n \"attributesValue\": [\n {\n \"attributeId\": \"<string>\",\n \"value\": {\n \"text\": \"\",\n \"number\": 0,\n \"boolean\": false,\n \"date\": \"2023-11-07T05:31:56Z\",\n \"image\": \"<string>\"\n },\n \"tag\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"message": "<string>"
}
}{
"timestamp": 123,
"error": "<string>",
"data": {}
}Account
Actualizar cuenta
Actualiza teléfono y/o atributos. Requiere x-client-id.
PUT
/
account
/
{accountId}
Actualizar cuenta
curl --request PUT \
--url https://community.goil.app/api/v1/external/account/{accountId} \
--header 'Content-Type: application/json' \
--data '
{
"phone": "<string>",
"attributesValue": [
{
"attributeId": "<string>",
"value": {
"text": "",
"number": 0,
"boolean": false,
"date": "2023-11-07T05:31:56Z",
"image": "<string>"
},
"tag": "<string>"
}
]
}
'import requests
url = "https://community.goil.app/api/v1/external/account/{accountId}"
payload = {
"phone": "<string>",
"attributesValue": [
{
"attributeId": "<string>",
"value": {
"text": "",
"number": 0,
"boolean": False,
"date": "2023-11-07T05:31:56Z",
"image": "<string>"
},
"tag": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone: '<string>',
attributesValue: [
{
attributeId: '<string>',
value: {
text: '',
number: 0,
boolean: false,
date: '2023-11-07T05:31:56Z',
image: '<string>'
},
tag: '<string>'
}
]
})
};
fetch('https://community.goil.app/api/v1/external/account/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://community.goil.app/api/v1/external/account/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'phone' => '<string>',
'attributesValue' => [
[
'attributeId' => '<string>',
'value' => [
'text' => '',
'number' => 0,
'boolean' => false,
'date' => '2023-11-07T05:31:56Z',
'image' => '<string>'
],
'tag' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://community.goil.app/api/v1/external/account/{accountId}"
payload := strings.NewReader("{\n \"phone\": \"<string>\",\n \"attributesValue\": [\n {\n \"attributeId\": \"<string>\",\n \"value\": {\n \"text\": \"\",\n \"number\": 0,\n \"boolean\": false,\n \"date\": \"2023-11-07T05:31:56Z\",\n \"image\": \"<string>\"\n },\n \"tag\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://community.goil.app/api/v1/external/account/{accountId}")
.header("Content-Type", "application/json")
.body("{\n \"phone\": \"<string>\",\n \"attributesValue\": [\n {\n \"attributeId\": \"<string>\",\n \"value\": {\n \"text\": \"\",\n \"number\": 0,\n \"boolean\": false,\n \"date\": \"2023-11-07T05:31:56Z\",\n \"image\": \"<string>\"\n },\n \"tag\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://community.goil.app/api/v1/external/account/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone\": \"<string>\",\n \"attributesValue\": [\n {\n \"attributeId\": \"<string>\",\n \"value\": {\n \"text\": \"\",\n \"number\": 0,\n \"boolean\": false,\n \"date\": \"2023-11-07T05:31:56Z\",\n \"image\": \"<string>\"\n },\n \"tag\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"message": "<string>"
}
}{
"timestamp": 123,
"error": "<string>",
"data": {}
}