API Reference
Library

Update library

code examples curl location globoff request patch 'https //api catenda com/v2/projects/{project id}/libraries/{library id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "name" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "name" "" }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //api catenda com/v2/projects/{project id}/libraries/{library id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api catenda com/v2/projects/{project id}/libraries/{library id}") https = net http new(url host, url port) https use ssl = true request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "name" "" }) response = https request(request) puts response read body import requests import json url = "https //api catenda com/v2/projects/{project id}/libraries/{library id}" payload = json dumps({ "name" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // ok { "id" "954803076a694255b959d236517b55da", "name" "library name", "type" "document", "createdby" { "id" "524809076a694255b989d236517a55da", "name" "john doe", "username" "john\@doe com", "email" "john\@doe com", "createdat" "2016 09 20t14 55 22 000z", "avatarurl" "https //api catenda com/v2/avatar/397t0ccd8f74516096c738de15dc6512", "type" "user" } }