Mettre à jour mon entreprise
curl --request PUT \
--url http://localhost:3091/v1/api/recruiters/company \
--header 'Content-Type: application/json' \
--data '
{
"nomEntreprise": "<string>",
"secteurActiviteId": 123,
"description": "<string>",
"anneeCreation": 123,
"nombreCollaborateurs": "<string>",
"presentation": "<string>",
"cultureEntreprise": "<string>",
"rechercheEntreprise": "<string>",
"logoUrl": "<string>",
"bannerUrl": "<string>",
"siteWeb": {
"nom": "<string>",
"url": "<string>"
},
"reseauxSociaux": [
{
"plateforme": "<string>",
"url": "<string>"
}
],
"pages": [
{
"id": 123,
"contenu": "<string>",
"donneesJson": "<string>",
"ordre": 123,
"publie": true
}
]
}
'import requests
url = "http://localhost:3091/v1/api/recruiters/company"
payload = {
"nomEntreprise": "<string>",
"secteurActiviteId": 123,
"description": "<string>",
"anneeCreation": 123,
"nombreCollaborateurs": "<string>",
"presentation": "<string>",
"cultureEntreprise": "<string>",
"rechercheEntreprise": "<string>",
"logoUrl": "<string>",
"bannerUrl": "<string>",
"siteWeb": {
"nom": "<string>",
"url": "<string>"
},
"reseauxSociaux": [
{
"plateforme": "<string>",
"url": "<string>"
}
],
"pages": [
{
"id": 123,
"contenu": "<string>",
"donneesJson": "<string>",
"ordre": 123,
"publie": True
}
]
}
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({
nomEntreprise: '<string>',
secteurActiviteId: 123,
description: '<string>',
anneeCreation: 123,
nombreCollaborateurs: '<string>',
presentation: '<string>',
cultureEntreprise: '<string>',
rechercheEntreprise: '<string>',
logoUrl: '<string>',
bannerUrl: '<string>',
siteWeb: {nom: '<string>', url: '<string>'},
reseauxSociaux: [{plateforme: '<string>', url: '<string>'}],
pages: [
{
id: 123,
contenu: '<string>',
donneesJson: '<string>',
ordre: 123,
publie: true
}
]
})
};
fetch('http://localhost:3091/v1/api/recruiters/company', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3091",
CURLOPT_URL => "http://localhost:3091/v1/api/recruiters/company",
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([
'nomEntreprise' => '<string>',
'secteurActiviteId' => 123,
'description' => '<string>',
'anneeCreation' => 123,
'nombreCollaborateurs' => '<string>',
'presentation' => '<string>',
'cultureEntreprise' => '<string>',
'rechercheEntreprise' => '<string>',
'logoUrl' => '<string>',
'bannerUrl' => '<string>',
'siteWeb' => [
'nom' => '<string>',
'url' => '<string>'
],
'reseauxSociaux' => [
[
'plateforme' => '<string>',
'url' => '<string>'
]
],
'pages' => [
[
'id' => 123,
'contenu' => '<string>',
'donneesJson' => '<string>',
'ordre' => 123,
'publie' => true
]
]
]),
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 := "http://localhost:3091/v1/api/recruiters/company"
payload := strings.NewReader("{\n \"nomEntreprise\": \"<string>\",\n \"secteurActiviteId\": 123,\n \"description\": \"<string>\",\n \"anneeCreation\": 123,\n \"nombreCollaborateurs\": \"<string>\",\n \"presentation\": \"<string>\",\n \"cultureEntreprise\": \"<string>\",\n \"rechercheEntreprise\": \"<string>\",\n \"logoUrl\": \"<string>\",\n \"bannerUrl\": \"<string>\",\n \"siteWeb\": {\n \"nom\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"reseauxSociaux\": [\n {\n \"plateforme\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pages\": [\n {\n \"id\": 123,\n \"contenu\": \"<string>\",\n \"donneesJson\": \"<string>\",\n \"ordre\": 123,\n \"publie\": true\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("http://localhost:3091/v1/api/recruiters/company")
.header("Content-Type", "application/json")
.body("{\n \"nomEntreprise\": \"<string>\",\n \"secteurActiviteId\": 123,\n \"description\": \"<string>\",\n \"anneeCreation\": 123,\n \"nombreCollaborateurs\": \"<string>\",\n \"presentation\": \"<string>\",\n \"cultureEntreprise\": \"<string>\",\n \"rechercheEntreprise\": \"<string>\",\n \"logoUrl\": \"<string>\",\n \"bannerUrl\": \"<string>\",\n \"siteWeb\": {\n \"nom\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"reseauxSociaux\": [\n {\n \"plateforme\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pages\": [\n {\n \"id\": 123,\n \"contenu\": \"<string>\",\n \"donneesJson\": \"<string>\",\n \"ordre\": 123,\n \"publie\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3091/v1/api/recruiters/company")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"nomEntreprise\": \"<string>\",\n \"secteurActiviteId\": 123,\n \"description\": \"<string>\",\n \"anneeCreation\": 123,\n \"nombreCollaborateurs\": \"<string>\",\n \"presentation\": \"<string>\",\n \"cultureEntreprise\": \"<string>\",\n \"rechercheEntreprise\": \"<string>\",\n \"logoUrl\": \"<string>\",\n \"bannerUrl\": \"<string>\",\n \"siteWeb\": {\n \"nom\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"reseauxSociaux\": [\n {\n \"plateforme\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pages\": [\n {\n \"id\": 123,\n \"contenu\": \"<string>\",\n \"donneesJson\": \"<string>\",\n \"ordre\": 123,\n \"publie\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"id": 123,
"nomEntreprise": "<string>",
"secteurActivite": "<string>",
"description": "<string>",
"anneeCreation": 123,
"nombreCollaborateurs": "<string>",
"presentation": "<string>",
"cultureEntreprise": "<string>",
"rechercheEntreprise": "<string>",
"logoUrl": "<string>",
"bannerUrl": "<string>",
"adresseSiege": {
"villeId": 123,
"villeNom": "<string>",
"regionId": 123,
"regionNom": "<string>",
"paysId": 123,
"paysNom": "<string>",
"quartier": "<string>",
"codePostal": "<string>",
"fullAddress": "<string>"
},
"siteWeb": {
"id": 123,
"nom": "<string>",
"url": "<string>"
},
"reseauxSociaux": [
{
"id": 123,
"plateforme": "<string>",
"url": "<string>"
}
],
"pages": [
{
"id": 123,
"contenu": "<string>",
"donneesJson": "<string>",
"ordre": 123,
"publie": true
}
],
"totalRecruitersCount": 123,
"validatedRecruitersCount": 123
},
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}Auth — Recruteur
Mettre à jour mon entreprise
Met à jour les informations de l’entreprise du recruteur connecté
PUT
/
v1
/
api
/
recruiters
/
company
Mettre à jour mon entreprise
curl --request PUT \
--url http://localhost:3091/v1/api/recruiters/company \
--header 'Content-Type: application/json' \
--data '
{
"nomEntreprise": "<string>",
"secteurActiviteId": 123,
"description": "<string>",
"anneeCreation": 123,
"nombreCollaborateurs": "<string>",
"presentation": "<string>",
"cultureEntreprise": "<string>",
"rechercheEntreprise": "<string>",
"logoUrl": "<string>",
"bannerUrl": "<string>",
"siteWeb": {
"nom": "<string>",
"url": "<string>"
},
"reseauxSociaux": [
{
"plateforme": "<string>",
"url": "<string>"
}
],
"pages": [
{
"id": 123,
"contenu": "<string>",
"donneesJson": "<string>",
"ordre": 123,
"publie": true
}
]
}
'import requests
url = "http://localhost:3091/v1/api/recruiters/company"
payload = {
"nomEntreprise": "<string>",
"secteurActiviteId": 123,
"description": "<string>",
"anneeCreation": 123,
"nombreCollaborateurs": "<string>",
"presentation": "<string>",
"cultureEntreprise": "<string>",
"rechercheEntreprise": "<string>",
"logoUrl": "<string>",
"bannerUrl": "<string>",
"siteWeb": {
"nom": "<string>",
"url": "<string>"
},
"reseauxSociaux": [
{
"plateforme": "<string>",
"url": "<string>"
}
],
"pages": [
{
"id": 123,
"contenu": "<string>",
"donneesJson": "<string>",
"ordre": 123,
"publie": True
}
]
}
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({
nomEntreprise: '<string>',
secteurActiviteId: 123,
description: '<string>',
anneeCreation: 123,
nombreCollaborateurs: '<string>',
presentation: '<string>',
cultureEntreprise: '<string>',
rechercheEntreprise: '<string>',
logoUrl: '<string>',
bannerUrl: '<string>',
siteWeb: {nom: '<string>', url: '<string>'},
reseauxSociaux: [{plateforme: '<string>', url: '<string>'}],
pages: [
{
id: 123,
contenu: '<string>',
donneesJson: '<string>',
ordre: 123,
publie: true
}
]
})
};
fetch('http://localhost:3091/v1/api/recruiters/company', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3091",
CURLOPT_URL => "http://localhost:3091/v1/api/recruiters/company",
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([
'nomEntreprise' => '<string>',
'secteurActiviteId' => 123,
'description' => '<string>',
'anneeCreation' => 123,
'nombreCollaborateurs' => '<string>',
'presentation' => '<string>',
'cultureEntreprise' => '<string>',
'rechercheEntreprise' => '<string>',
'logoUrl' => '<string>',
'bannerUrl' => '<string>',
'siteWeb' => [
'nom' => '<string>',
'url' => '<string>'
],
'reseauxSociaux' => [
[
'plateforme' => '<string>',
'url' => '<string>'
]
],
'pages' => [
[
'id' => 123,
'contenu' => '<string>',
'donneesJson' => '<string>',
'ordre' => 123,
'publie' => true
]
]
]),
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 := "http://localhost:3091/v1/api/recruiters/company"
payload := strings.NewReader("{\n \"nomEntreprise\": \"<string>\",\n \"secteurActiviteId\": 123,\n \"description\": \"<string>\",\n \"anneeCreation\": 123,\n \"nombreCollaborateurs\": \"<string>\",\n \"presentation\": \"<string>\",\n \"cultureEntreprise\": \"<string>\",\n \"rechercheEntreprise\": \"<string>\",\n \"logoUrl\": \"<string>\",\n \"bannerUrl\": \"<string>\",\n \"siteWeb\": {\n \"nom\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"reseauxSociaux\": [\n {\n \"plateforme\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pages\": [\n {\n \"id\": 123,\n \"contenu\": \"<string>\",\n \"donneesJson\": \"<string>\",\n \"ordre\": 123,\n \"publie\": true\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("http://localhost:3091/v1/api/recruiters/company")
.header("Content-Type", "application/json")
.body("{\n \"nomEntreprise\": \"<string>\",\n \"secteurActiviteId\": 123,\n \"description\": \"<string>\",\n \"anneeCreation\": 123,\n \"nombreCollaborateurs\": \"<string>\",\n \"presentation\": \"<string>\",\n \"cultureEntreprise\": \"<string>\",\n \"rechercheEntreprise\": \"<string>\",\n \"logoUrl\": \"<string>\",\n \"bannerUrl\": \"<string>\",\n \"siteWeb\": {\n \"nom\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"reseauxSociaux\": [\n {\n \"plateforme\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pages\": [\n {\n \"id\": 123,\n \"contenu\": \"<string>\",\n \"donneesJson\": \"<string>\",\n \"ordre\": 123,\n \"publie\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3091/v1/api/recruiters/company")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"nomEntreprise\": \"<string>\",\n \"secteurActiviteId\": 123,\n \"description\": \"<string>\",\n \"anneeCreation\": 123,\n \"nombreCollaborateurs\": \"<string>\",\n \"presentation\": \"<string>\",\n \"cultureEntreprise\": \"<string>\",\n \"rechercheEntreprise\": \"<string>\",\n \"logoUrl\": \"<string>\",\n \"bannerUrl\": \"<string>\",\n \"siteWeb\": {\n \"nom\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"reseauxSociaux\": [\n {\n \"plateforme\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"pages\": [\n {\n \"id\": 123,\n \"contenu\": \"<string>\",\n \"donneesJson\": \"<string>\",\n \"ordre\": 123,\n \"publie\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"id": 123,
"nomEntreprise": "<string>",
"secteurActivite": "<string>",
"description": "<string>",
"anneeCreation": 123,
"nombreCollaborateurs": "<string>",
"presentation": "<string>",
"cultureEntreprise": "<string>",
"rechercheEntreprise": "<string>",
"logoUrl": "<string>",
"bannerUrl": "<string>",
"adresseSiege": {
"villeId": 123,
"villeNom": "<string>",
"regionId": 123,
"regionNom": "<string>",
"paysId": 123,
"paysNom": "<string>",
"quartier": "<string>",
"codePostal": "<string>",
"fullAddress": "<string>"
},
"siteWeb": {
"id": 123,
"nom": "<string>",
"url": "<string>"
},
"reseauxSociaux": [
{
"id": 123,
"plateforme": "<string>",
"url": "<string>"
}
],
"pages": [
{
"id": 123,
"contenu": "<string>",
"donneesJson": "<string>",
"ordre": 123,
"publie": true
}
],
"totalRecruitersCount": 123,
"validatedRecruitersCount": 123
},
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z"
}Body
application/json
Maximum string length:
100Maximum string length:
1000Maximum string length:
50Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I