Nota
Estás viendo la API de aplicaciones cuyo ámbito se limita a las aplicaciones. Si buscas la especificación API completa, consulta la API de Organizaciones.
Esta petición tiene como objetivo actualizar una aplicación publicada.
Definición #
- Método: PUT
- URL:
https://api.applivery.io/v1/integrations/distributions/{publishedApplicationId}
- Autenticación, published application ID: requerido
- Encabezados:
Content-Type: application/json
Authorization: bearer <your_app_token>
Params #
Param | Tipo | Descripción |
---|---|---|
publishedApplicationId
|
String |
ID de la App publicada. E.g.: 552ae3cfcb5abfc58d733b81
|
Params #
Param | Tipo | Descripción |
---|---|---|
slug
|
String | Nombre simplificado de la publicación presente en la URL. |
security
|
String |
Seguridad para acceder a la publicación: public , password , logged .
|
tags
|
Array |
Etiquetas separadas por comas. E.g.: tag1, tag2, tag3 .
|
groups
|
Array |
Lista de grupos que tendrán acceso a la app publicada con soporte para cláusulas AND / OR. Cada elemento dentro del mismo array se considerará como AND, mientras que cada array será una cláusula OR. Ej: Para permitir usuarios en grupo1 Y grupo2 O en grupo3 use: [["group1", "group2"],["group3"]] .
|
password
|
String | Contraseña necesaria para acceder. |
visibility
|
String |
Acceso: active , inactive , unlisted .
|
showHistory
|
Boolean | Permite encontrar e instalar versiones anteriores de la aplicación. |
filter.type
|
String |
last , build , builds , gitBranch , gitTag , tag .
|
filter.value
|
String |
Identificador de la filter.type seleccionada.
|
filter.ios
|
String | Aplicación publicada os es iOS o macOS. |
filter.android
|
String | Publicado aplicación os es android. |
configuration.application.name
|
String | Sobrescribir el nombre de la app. |
configuration.application.description
|
String | Sobrescribir la descripción de la app. |
configuration.branding.logo
|
String | Sobrescribir el logo de la marca en la Store. |
configuration.branding.primaryColor
|
String | Sobrescribir el color de la marca en la Store. |
configuration.branding.buttonColor
|
String | Sobrescribir el color del botón. |
terms.active
|
Boolean | Requerir la aceptación de términos legales. |
terms.text
|
String | Términos legales. |
showDevInfo
|
Boolean | Mostrar información técnica de la build, como información de Git, certificados y etiquetas. |
allowedCountries
|
Array |
Permitir acceso de países a la publicación de la app. Códigos de país separados por comas: "AF" , "AL" , "DZ" , "AS" , "AD" , "AO" , "AI" , "AQ" , "AG" , "AR" , "AM" , "AW" , "AU" , "AT" , "AZ" , "BS" , "BH" , "BD" , "BB" , "BY" , "BE" , "BZ" , "BJ" , "BM" , "BT" , "BO" , "BQ" , "BA" , "BW" , "BV" , "BR" , "IO" , "BN" , "BG" , "BF" , "BI" , "KH" , "CM" , "CA" , "CV" , "KY" , "CF" , "TD" , "CL" , "CN" , "CX" , "CC" , "CO" , "KM" , "CG" , "CD" , "CK" , "CR" , "CI" , "HR" , "CU" , "CW" , "CY" , "CZ" , "DK" , "DJ" , "DM" , "DO" , "EC" , "EG" , "SV" , "GQ" , "ER" , "EE" , "ET" , "FK" , "FO" , "FJ" , "FI" , "FR" , "GF" , "PF" , "TF" , "GA" , "GM" , "GE" , "DE" , "GH" , "GI" , "GR" , "GL" , "GD" , "GP" , "GU" , "GT" , "GG" , "GN" , "GW" , "GY" , "HT" , "HM" , "VA" , "HN" , "HK" , "HU" , "IS" , "IN" , "ID" , "IR" , "IQ" , "IE" , "IM" , "IL" , "IT" , "JM" , "JP" , "JE" , "JO" , "KZ" , "KE" , "KI" , "KP" , "KR" , "KW" , "KG" , "LA" , "LV" , "LB" , "LS" , "LR" , "LY" , "LI" , "LT" , "LU" , "MO" , "MK" , "MG" , "MW" , "MY" , "MV" , "ML" , "MT" , "MH" , "MQ" , "MR" , "MU" , "YT" , "MX" , "FM" , "MD" , "MC" , "MN" , "ME" , "MS" , "MA" , "MZ" , "MM" , "NA" , "NR" , "NP" , "NL" , "AN" , "NC" , "NZ" , "NI" , "NE" , "NG" , "NU" , "NF" , "MP" , "NO" , "OM" , "PK" , "PW" , "PS" , "PA" , "PG" , "PY" , "PE" , "PH" , "PN" , "PL" , "PT" , "PR" , "QA" , "RW" , "RE" , "RO" , "RU" , "BL" , "SH" , "KN" , "LC" , "MF" , "PM" , "VC" , "WS" , "SM" , "ST" , "SA" , "SN" , "RS" , "SC" , "SL" , "SG" , "SX" , "SK" , "SI" , "SB" , "SO" , "ZA" , "GS" , "SS" , "ES" , "LK" , "SD" , "SR" , "SJ" , "SZ" , "SE" , "CH" , "SY" , "TW" , "TJ" , "TZ" , "TH" , "TL" , "TG" , "TK" , "TO" , "TT" , "TN" , "TR" , "TM" , "TC" , "TV" , "UG" , "UA" , "AE" , "GB" , "US" , "UM" , "UY" , "UZ" , "VU" , "VE" , "VN" , "VG" , "VI" , "WF" , "EH" , "YE" , "ZM" , "ZW" , "AX" .
|
blockedCountries
|
Array |
Restringir el acceso de países a la publicación de la app. Códigos de país separados por comas: "AF" , "AL" , "DZ" , "AS" , "AD" , "AO" , "AI" , "AQ" , "AG" , "AR" , "AM" , "AW" , "AU" , "AT" , "AZ" , "BS" , "BH" , "BD" , "BB" , "BY" , "BE" , "BZ" , "BJ" , "BM" , "BT" , "BO" , "BQ" , "BA" , "BW" , "BV" , "BR" , "IO" , "BN" , "BG" , "BF" , "BI" , "KH" , "CM" , "CA" , "CV" , "KY" , "CF" , "TD" , "CL" , "CN" , "CX" , "CC" , "CO" , "KM" , "CG" , "CD" , "CK" , "CR" , "CI" , "HR" , "CU" , "CW" , "CY" , "CZ" , "DK" , "DJ" , "DM" , "DO" , "EC" , "EG" , "SV" , "GQ" , "ER" , "EE" , "ET" , "FK" , "FO" , "FJ" , "FI" , "FR" , "GF" , "PF" , "TF" , "GA" , "GM" , "GE" , "DE" , "GH" , "GI" , "GR" , "GL" , "GD" , "GP" , "GU" , "GT" , "GG" , "GN" , "GW" , "GY" , "HT" , "HM" , "VA" , "HN" , "HK" , "HU" , "IS" , "IN" , "ID" , "IR" , "IQ" , "IE" , "IM" , "IL" , "IT" , "JM" , "JP" , "JE" , "JO" , "KZ" , "KE" , "KI" , "KP" , "KR" , "KW" , "KG" , "LA" , "LV" , "LB" , "LS" , "LR" , "LY" , "LI" , "LT" , "LU" , "MO" , "MK" , "MG" , "MW" , "MY" , "MV" , "ML" , "MT" , "MH" , "MQ" , "MR" , "MU" , "YT" , "MX" , "FM" , "MD" , "MC" , "MN" , "ME" , "MS" , "MA" , "MZ" , "MM" , "NA" , "NR" , "NP" , "NL" , "AN" , "NC" , "NZ" , "NI" , "NE" , "NG" , "NU" , "NF" , "MP" , "NO" , "OM" , "PK" , "PW" , "PS" , "PA" , "PG" , "PY" , "PE" , "PH" , "PN" , "PL" , "PT" , "PR" , "QA" , "RW" , "RE" , "RO" , "RU" , "BL" , "SH" , "KN" , "LC" , "MF" , "PM" , "VC" , "WS" , "SM" , "ST" , "SA" , "SN" , "RS" , "SC" , "SL" , "SG" , "SX" , "SK" , "SI" , "SB" , "SO" , "ZA" , "GS" , "SS" , "ES" , "LK" , "SD" , "SR" , "SJ" , "SZ" , "SE" , "CH" , "SY" , "TW" , "TJ" , "TZ" , "TH" , "TL" , "TG" , "TK" , "TO" , "TT" , "TN" , "TR" , "TM" , "TC" , "TV" , "UG" , "UA" , "AE" , "GB" , "US" , "UM" , "UY" , "UZ" , "VU" , "VE" , "VN" , "VG" , "VI" , "WF" , "EH" , "YE" , "ZM" , "ZW" , "AX" .
|
Ejemplo de petición #
curl 'https://api.applivery.io/v1/integrations/distributions/552ae3cfcb5abfc58d733b81' \
-X POST \
-H 'Authorization: bearer xyz...xyz' \
-F 'slug=your-slug-here' \
-F 'security=public' \
-F 'tags=tag1, tag2, tag3' \
-F 'groups[0][]=group1' \
-F 'groups[0][]=group2' \
-F 'groups[1][]=group3' \
-F 'password=your-password' \
-F 'visibility=active' \
-F showHistory=true \
-F 'filter[key]=value' \
-F 'configuration.application.name=App name' \
-F 'configuration.application.description=App description' \
-F 'configuration.branding.logo=my-url.png' \
-F 'configuration.branding.primaryColor=#3069FE' \
-F 'configuration.branding.buttonColor=#ffffff' \
-F terms.active=true \
-F 'terms.text=Terms and conditions' \
-F showDevInfo=false \
-F 'allowedCountries[]=AF' \
Respuestas #
200 - Success
400 - Bad request
401 - Unauthorized
404 - Not found
Content type:
application/json
{
"status": true,
"data": {
"id": "string",
"updatedAt": "string",
"createdAt": "string",
"application": "string",
"applicationInfo": {
"id": "string",
"slug": "string",
"name": "string",
"picture": "string"
},
"slug": "string",
"filter": {
"type": "last",
"value": "string",
"ios": "string",
"android": "string"
},
"security": "public",
"tags": [
"string"
],
"groups": [
[
"string"
]
],
"visibility": "active",
"showHistory": true,
"showDevInfo": true,
"distributionUrl": "string",
"terms": {
"active": true,
"text": "string"
}
}
}
Content type:
application/json
{
"status": false,
"error": {
"code": 5024,
"message": "Slug already used"
}
}
Content type:
application/json
{
"status": false,
"error": {
"code": 3002,
"message": "Token Expired"
}
}
Content type:
application/json
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}