Rivier/ Reference/ workspace

Workspace resource move check

get/projects/{projectId}/resources/{type}/{rid}/move-check

What moving a resource to another project of the same organisation would move, and what stops it. Changes nothing. A document is {collection}~{id}; the other types are prompt_set, asset, product, connection and agent, each by its id. info lists what moving changes without stopping it.

Before you call

Credential
Authorization: Bearer $KEY
Scope
workspace:read
Sdk
workspace.resource.moveCheck
Cli
workspace resource move check

Parameters

  • projectIdstring (uuid)required
    In the path
  • typestringrequired
    In the path
  • ridstringrequired
    In the path
  • toProjectstring (uuid)required
    In the query

Responses

  • 200application/json
    Success
    • movablebooleanrequired
    • moveslist of objectrequired
      • tablestringrequired
      • rowsnumberrequired
    • refusalslist of objectrequired
      • codestringrequired
      • sentencestringrequired
      • itemslist of string
    • infolist of objectrequired
      • codestringrequired
      • sentencestringrequired
      • countnumber
  • 400application/json
    The request was malformed
    • errorstringrequired
    • messagestring
  • 401application/json
    No valid credential
    • errorstringrequired
    • messagestring
  • 403application/json
    The credential lacks the scope, origin or address
    • errorstringrequired
    • messagestring
  • 429application/json
    Over the key's rate limit; see Retry-After
    • errorstringrequired
    • messagestring

This page as Markdown