Custom Models - Authorize Model Copy
Generera auktorisering för att kopiera en modell till målresursen Formigenkänning.
POST {endpoint}/formrecognizer/v2.1/custom/models/copyAuthorization
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
endpoint
|
path | True |
string |
Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel: https://westus2.api.cognitive.microsoft.com). |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Svar
Name | Typ | Description |
---|---|---|
201 Created |
Kopieringsbegäran har auktoriserats. Sidhuvuden Location: string |
|
Other Status Codes |
Svarsentitet som medföljer icke-lyckade svar som innehåller ytterligare information om felet. |
Säkerhet
Ocp-Apim-Subscription-Key
Typ:
apiKey
I:
header
Exempel
Copy custom model
Exempelbegäran
POST {endpoint}/formrecognizer/v2.1/custom/models/copyAuthorization
Exempelsvar
Location: {endpoint}/formrecognizer/v2.1/custom/models/f973e3c1-1148-43bb-bea8-49d0603ab3a8
{
"modelId": "f973e3c1-1148-43bb-bea8-49d0603ab3a8",
"accessToken": "{accessToken}",
"expirationDateTimeTicks": 86400
}
Definitioner
Name | Description |
---|---|
Copy |
Begär parameter som innehåller auktoriseringsanspråk för kopieringsåtgärd. |
Error |
|
Error |
CopyAuthorizationResult
Begär parameter som innehåller auktoriseringsanspråk för kopieringsåtgärd.
Name | Typ | Description |
---|---|---|
accessToken |
string |
Tokenanspråk som används för att auktorisera begäran. |
expirationDateTimeTicks |
integer |
Den tid då åtkomsttoken upphör att gälla. Datumet representeras som antalet sekunder från 1970-01-01T0:0:0Z UTC fram till förfallotiden. |
modelId |
string |
Modellidentifierare. |
ErrorInformation
Name | Typ | Description |
---|---|---|
code |
string |
|
message |
string |
ErrorResponse
Name | Typ | Description |
---|---|---|
error |