Writing
Restore Copy
POST
/boards/{board_id}/copies/{copy_id}/restore
package main
import ( "fmt" "net/http" "io")
func main() {
url := "http://localhost:3000/api/v1/boards/example/copies/example/restore"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'http://localhost:3000/api/v1/boards/example/copies/example/restore';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/boards/example/copies/example/restore \ --header 'Authorization: Bearer <token>'Puts the board back as the copy has it, for everyone at once. The board as it is now is saved first, so a restore can be undone the same way. Needs a key with full access.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”board_id
required
Board Id
string
copy_id
required
Copy Id
string
Responses
Section titled “Responses”Successful Response
No key, or a key that stopped working
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}The key may not do this, or keys are switched off
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}Not found, or not among what the key reaches
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}The request does not match the schema
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}Over a budget; see Retry-After
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}