Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
/* — search criteria (optional) — */
"opportunityID":"",
"opportunityStateID":"",
"description":"",
"enabled":""    // <– Boolean
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "result":         [
                        {
                "version": 2,
                "enabled": "true",
                "description": "Campaña Julio 2011",
                "opportunityID": "JUL-2011",
                "opportunityTarget": "Captación de nuevos clientes",
                "id": "1",
                "opportunityStateID": 33,
                "opportunityStateDescription": "Lanzamiento nueva version"
            },
                        {
                "version": 1,
                "enabled": "true",
                "description": "Envio de mail a nuestros potenciales clientes",
                "opportunityID": "Mailing",
                "id": "3",
                "opportunityStateID": 33,
                "opportunityStateDescription": "Lanzamiento nueva version"
            }
        ],
        "total": 2
    },
    "success": true
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"id": "1"
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "version": 2,
        "enabled": "true",
        "description": "Campaña Julio 2011",
        "opportunityID": "JUL-2011",
        "opportunityTarget": "Captación de nuevos clientes",
        "id": "1",
        "opportunityStateID": 33
    },
    "success": true
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"enabled": "true",
"opportunityID": "OCT-2011",
"opportunityStateID": "33",
"description": "Campaña Octubre 2011",
"opportunityTarget": "Captación de nuevos clientes"
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "65",
    "success": true,
    "version": 0
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"enabled": "true",
"opportunityID": "OCT-2011",
"opportunityStateID": "33",
"description": "Campaña Octubre 2011",
"opportunityTarget": "Reposicionamiento",
"id": "65",
"version": 0
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "65",
    "success": true,
    "version": 1
}

...

Request

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
"id": "65",
"version": 1
}

Response

Code Block
controlstrue
themeDefault
languagejavascript
themeDefault
linenumberstrue
{
    "data":     {
        "errors": [],
        "messages": [        {
            "description": "Operación realizada correctamente",
            "id": "operation_success"
        }],
        "warns": []
    },
    "id": "65",
    "success": true,
    "version": 1
}